"""
import os
-import glob
import subprocess
import urlparse
import re
if '@' in host:
try:
user_pass, host = host.rsplit('@', 1)
- except ValueError, e:
+ except ValueError:
raise errors.ConfigError('Bad URL: %s' % repourl)
userpwd = user_pass.split(':', 1)
repos[repourl]['user'] = userpwd[0]
raise errors.UrlError('timeout on %s: %s' % (url, e))
elif errcode == pycurl.E_FILESIZE_EXCEEDED:
raise errors.UrlError('max download size exceeded on %s'\
- % self.url)
+ % url)
else:
errmsg = 'pycurl error %s - "%s"' % (errcode, str(e.args[1]))
raise errors.UrlError(errmsg)