Browse Source

Remove some unused imports.

Jelmer Vernooij 15 năm trước cách đây
mục cha
commit
35f368b3be

+ 0 - 1
dulwich/server.py

@@ -28,7 +28,6 @@ Documentation/technical directory in the cgit distribution, and in particular:
 
 import collections
 import SocketServer
-import tempfile
 
 from dulwich.errors import (
     ApplyDeltaError,

+ 2 - 0
dulwich/tests/test_file.py

@@ -25,7 +25,9 @@ import unittest
 
 from dulwich.file import GitFile
 
+
 class GitFileTests(unittest.TestCase):
+
     def setUp(self):
         self._tempdir = tempfile.mkdtemp()
         f = open(self.path('foo'), 'wb')

+ 0 - 1
dulwich/tests/test_server.py

@@ -20,7 +20,6 @@
 """Tests for the smart protocol server."""
 
 
-from cStringIO import StringIO
 from unittest import TestCase
 
 from dulwich.errors import (

+ 0 - 1
dulwich/tests/test_web.py

@@ -23,7 +23,6 @@ import re
 from unittest import TestCase
 
 from dulwich.objects import (
-    type_map,
     Tag,
     Blob,
     )

+ 0 - 5
dulwich/web.py

@@ -20,7 +20,6 @@
 
 from cStringIO import StringIO
 import cgi
-import os
 import re
 import time
 
@@ -28,11 +27,7 @@ from dulwich.objects import (
     Tag,
     num_type_map,
     )
-from dulwich.repo import (
-    Repo,
-    )
 from dulwich.server import (
-    GitBackend,
     ReceivePackHandler,
     UploadPackHandler,
     )