hgext/relink.py
changeset 36394 4bc983568016
parent 32337 46ba2cdda476
child 36632 9e2866065982
--- a/hgext/relink.py	Sat Feb 24 16:06:21 2018 +0530
+++ b/hgext/relink.py	Sat Feb 24 16:07:45 2018 +0530
@@ -168,8 +168,8 @@
         source = os.path.join(src, f)
         tgt = os.path.join(dst, f)
         # Binary mode, so that read() works correctly, especially on Windows
-        sfp = file(source, 'rb')
-        dfp = file(tgt, 'rb')
+        sfp = open(source, 'rb')
+        dfp = open(tgt, 'rb')
         sin = sfp.read(CHUNKLEN)
         while sin:
             din = dfp.read(CHUNKLEN)