Explorar o código

Make fancy_rename python3-compatible.

Jelmer Vernooij %!s(int64=7) %!d(string=hai) anos
pai
achega
04ba765ae3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: