0001-trivial-remove-obsolete-HTTP-auth-code-33392.patch
wcs/qommon/misc.py | ||
---|---|---|
299 | 299 |
else: |
300 | 300 |
raise ConnectionError('invalid scheme in URL %s' % url) |
301 | 301 | |
302 |
auth = None |
|
303 |
if '@' in hostname: |
|
304 |
authenticator, hostname = hostname.split('@') |
|
305 |
if ':' in authenticator: |
|
306 |
username, password = authenticator.split(':', 1) |
|
307 |
else: |
|
308 |
username = authenticator |
|
309 |
password = '' |
|
310 |
auth = (username, password) |
|
311 | ||
312 | 302 |
timeout = timeout or settings.REQUESTS_TIMEOUT |
313 | 303 | |
314 | 304 |
try: |
315 |
- |