浏览代码

Remove some unused imports.

Jelmer Vernooij 15 年之前
父节点
当前提交
35f368b3be
共有 5 个文件被更改,包括 2 次插入8 次删除
  1. 0 1
      dulwich/server.py
  2. 2 0
      dulwich/tests/test_file.py
  3. 0 1
      dulwich/tests/test_server.py
  4. 0 1
      dulwich/tests/test_web.py
  5. 0 5
      dulwich/web.py

+ 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,
     )