浏览代码

Make fancy_rename python3-compatible.

Jelmer Vernooij 7 年之前
父节点
当前提交
04ba765ae3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dulwich/file.py

+ 1 - 1
dulwich/file.py

@@ -47,7 +47,7 @@ def _fancy_rename(oldname, newname):
 
     # destination file exists
     try:
-        (fd, tmpfile) = tempfile.mkstemp(".tmp", prefix=oldname+".", dir=".")
+        (fd, tmpfile) = tempfile.mkstemp(".tmp", prefix=oldname, dir=".")
         os.close(fd)
         os.remove(tmpfile)
     except OSError: