Explorar o código

Cope with urlparse being imported as a function.

Jelmer Vernooij %!s(int64=5) %!d(string=hai) anos
pai
achega
437fb6ceac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dulwich/client.py

+ 1 - 1
dulwich/client.py

@@ -1883,7 +1883,7 @@ def get_credentials_from_store(scheme, hostname, username=None,
         try:
             with open(fname, 'rb') as f:
                 for line in f:
-                    parsed_line = urlparse.urlparse(line)
+                    parsed_line = urlparse(line)
                     if (parsed_line.scheme == scheme and
                             parsed_line.hostname == hostname and
                             (username is None or