瀏覽代碼

Remove monkeypatch for older versions of urlparse.uses_netloc.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Gary van der Merwe 11 年之前
父節點
當前提交
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