hgext/convert/darcs.py
changeset 14168 135e244776f0
parent 14139 4e5a36eeefd1
child 15355 dbdb777502dc
--- a/hgext/convert/darcs.py	Mon May 02 10:11:05 2011 +0200
+++ b/hgext/convert/darcs.py	Mon May 02 10:11:18 2011 +0200
@@ -191,7 +191,7 @@
         if rev != self.lastrev:
             raise util.Abort(_('internal calling inconsistency'))
         path = os.path.join(self.tmppath, name)
-        data = open(path, 'rb').read()
+        data = util.readfile(path)
         mode = os.lstat(path).st_mode
         mode = (mode & 0111) and 'x' or ''
         return data, mode