浏览代码

Fix import.

Jelmer Vernooij 15 年之前
父节点
当前提交
cd7a8dd811
共有 1 个文件被更改,包括 2 次插入1 次删除
  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