2
0
Эх сурвалжийг харах

Remove monkeypatch for older versions of urlparse.uses_netloc.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Gary van der Merwe 11 жил өмнө
parent
commit
8f4db8b43b
1 өөрчлөгдсөн 0 нэмэгдсэн , 6 устгасан
  1. 0 6
      dulwich/client.py

+ 0 - 6
dulwich/client.py

@@ -69,12 +69,6 @@ from dulwich.refs import (
     )
 
 
-# Python 2.6.6 included these in urlparse.uses_netloc upstream. Do
-# monkeypatching to enable similar behaviour in earlier Pythons:
-for scheme in ('git', 'git+ssh'):
-    if scheme not in urlparse.uses_netloc:
-        urlparse.uses_netloc.append(scheme)
-
 def _fileno_can_read(fileno):
     """Check if a file descriptor is readable."""
     return len(select.select([fileno], [], [], 0)[0]) > 0