2
0
Jelmer Vernooij 4 жил өмнө
parent
commit
bced3762c1

+ 0 - 1
dulwich/client.py

@@ -52,7 +52,6 @@ from urllib.parse import (
     unquote as urlunquote,
     urlparse,
     urljoin,
-    urlunparse,
     urlunsplit,
     urlunparse,
     )

+ 0 - 1
dulwich/ignore.py

@@ -24,7 +24,6 @@ For details for the matching rules, see https://git-scm.com/docs/gitignore
 
 import os.path
 import re
-import sys
 
 from dulwich.config import get_xdg_config_home_path
 

+ 0 - 1
dulwich/refs.py

@@ -24,7 +24,6 @@
 """
 import errno
 import os
-import sys
 
 from dulwich.errors import (
     PackedRefsException,

+ 2 - 1
dulwich/tests/test_repository.py

@@ -362,7 +362,8 @@ class RepositoryRootTests(TestCase):
             encoded_path = r.path
             if not isinstance(encoded_path, bytes):
                 encoded_path = os.fsencode(encoded_path)
-            self.assertEqual(encoded_path, c.get((b'remote', b'origin'), b'url'))
+            self.assertEqual(
+                encoded_path, c.get((b'remote', b'origin'), b'url'))
             self.assertEqual(
                 b'+refs/heads/*:refs/remotes/origin/*',
                 c.get((b'remote', b'origin'), b'fetch'))