Bladeren bron

Fix some style issues.

Jelmer Vernooij 5 jaren geleden
bovenliggende
commit
218fea8151
5 gewijzigde bestanden met toevoegingen van 1 en 12 verwijderingen
  1. 0 7
      dulwich/contrib/test_swift.py
  2. 1 1
      dulwich/diff_tree.py
  3. 0 2
      dulwich/fastexport.py
  4. 0 1
      dulwich/hooks.py
  5. 0 1
      dulwich/objects.py

+ 0 - 7
dulwich/contrib/test_swift.py

@@ -31,7 +31,6 @@ try:
 except ImportError:
     from io import StringIO
 
-import sys
 from unittest import skipIf
 
 from dulwich.tests import (
@@ -40,9 +39,6 @@ from dulwich.tests import (
 from dulwich.tests.test_object_store import (
     ObjectStoreTests,
     )
-from dulwich.tests.utils import (
-    build_pack,
-    )
 from dulwich.objects import (
     Blob,
     Commit,
@@ -50,9 +46,6 @@ from dulwich.objects import (
     Tag,
     parse_timezone,
     )
-from dulwich.pack import (
-    REF_DELTA,
-    )
 
 try:
     from simplejson import dumps as json_dumps

+ 1 - 1
dulwich/diff_tree.py

@@ -19,7 +19,7 @@
 #
 
 """Utilities for diffing files and trees."""
-import sys
+
 from collections import (
     defaultdict,
     namedtuple,

+ 0 - 2
dulwich/fastexport.py

@@ -21,8 +21,6 @@
 
 """Fast export/import functionality."""
 
-import sys
-
 from dulwich.index import (
     commit_tree,
     )

+ 0 - 1
dulwich/hooks.py

@@ -22,7 +22,6 @@
 
 import os
 import subprocess
-import sys
 import tempfile
 
 from dulwich.errors import (

+ 0 - 1
dulwich/objects.py

@@ -27,7 +27,6 @@ from collections import namedtuple
 import os
 import posixpath
 import stat
-import sys
 import warnings
 import zlib
 from hashlib import sha1