Przeglądaj źródła

Make fancy_rename python3-compatible.

Jelmer Vernooij 7 lat temu
rodzic
commit
04ba765ae3
1 zmienionych plików z 1 dodań i 1 usunięć
  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: