Projet

Général

Profil

0001-trivial-remove-obsolete-HTTP-auth-code-33392.patch

Frédéric Péters, 23 mai 2019 21:17

Télécharger (1,01 ko)

Voir les différences:

Subject: [PATCH] trivial: remove obsolete HTTP auth code (#33392)

 wcs/qommon/misc.py | 10 ----------
 1 file changed, 10 deletions(-)
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
-