File python-urlgrabber-3.1.0.patch of Package python-urlgrabber

--- urlgrabber/grabber.py
+++ urlgrabber/grabber.py
@@ -686,6 +686,9 @@
                 user_pass, host = host.split('@', 1)
                 if ':' in user_pass:
                     user, password = user_pass.split(':', 1)
+                else:
+                    user = user_pass
+                    password = ''
             except ValueError, e:
                 raise URLGrabError(1, _('Bad URL: %s') % url)
             if DEBUG: DEBUG.info('adding HTTP auth: %s, %s', user, password)
openSUSE Build Service is sponsored by