mercurial/util.py
changeset 37117 e7b517809ebc
parent 37116 7ccc9b8aca4c
child 37118 5be286db5fb5
--- a/mercurial/util.py	Sat Mar 24 14:38:34 2018 +0900
+++ b/mercurial/util.py	Sat Mar 24 14:32:34 2018 +0900
@@ -1528,7 +1528,8 @@
         if code:
             raise error.Abort(_("command '%s' failed: %s") %
                               (cmd, explainexit(code)))
-        return readfile(outname)
+        with open(outname, 'rb') as fp:
+            return fp.read()
     finally:
         try:
             if inname: