Jelmer Vernooij 15 lat temu
rodzic
commit
cd7a8dd811
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      dulwich/server.py

+ 2 - 1
dulwich/server.py

@@ -28,6 +28,7 @@ Documentation/technical directory in the cgit distribution, and in particular:
 
 import collections
 import SocketServer
+import tempfile
 
 from dulwich.errors import (
     ApplyDeltaError,
@@ -91,7 +92,7 @@ class GitBackend(Backend):
 
     def __init__(self, repo=None):
         if repo is None:
-            repo = Repo(tmpfile.mkdtemp())
+            repo = Repo(tempfile.mkdtemp())
         self.repo = repo
         self.refs = self.repo.refs
         self.object_store = self.repo.object_store