Sfoglia il codice sorgente

Cleanup some imports.

Jelmer Vernooij 14 anni fa
parent
commit
0bc9928b33

+ 0 - 1
dulwich/object_store.py

@@ -23,7 +23,6 @@
 import errno
 import itertools
 import os
-import posixpath
 import stat
 import tempfile
 import urllib2

+ 0 - 1
dulwich/protocol.py

@@ -20,7 +20,6 @@
 """Generic functions for talking the git smart server protocol."""
 
 from cStringIO import StringIO
-import os
 import socket
 
 from dulwich.errors import (

+ 1 - 0
dulwich/tests/compat/test_client.py

@@ -43,6 +43,7 @@ from utils import (
     run_git_or_fail,
     )
 
+
 class DulwichClientTestBase(object):
     """Tests for client/server compatibility."""
 

+ 0 - 1
dulwich/tests/compat/test_server.py

@@ -29,7 +29,6 @@ import threading
 from dulwich.server import (
     DictBackend,
     TCPGitServer,
-    ReceivePackHandler,
     )
 from server_utils import (
     ServerTests,

+ 0 - 1
dulwich/tests/compat/test_web.py

@@ -27,7 +27,6 @@ warning: these tests should be fairly stable, but when writing/debugging new
 import threading
 from wsgiref import simple_server
 
-import dulwich
 from dulwich.server import (
     DictBackend,
     )

+ 0 - 1
dulwich/tests/test_object_store.py

@@ -32,7 +32,6 @@ from dulwich.errors import (
 from dulwich.objects import (
     object_class,
     Blob,
-    ShaFile,
     Tag,
     Tree,
     TreeEntry,

+ 0 - 1
dulwich/tests/test_web.py

@@ -30,7 +30,6 @@ from dulwich.objects import (
     )
 from dulwich.repo import (
     BaseRepo,
-    DictRefsContainer,
     MemoryRepo,
     )
 from dulwich.server import (