diff mercurial/util.py @ 14250:34ec9b313638

util: make readfile() operate in binary mode writefile() and appendfile() are already working that way.
author Patrick Mezard <pmezard@gmail.com>
date Sat, 07 May 2011 21:12:35 +0200
parents b9e1b041744f
children 23cd7eeff678
line wrap: on
line diff
--- a/mercurial/util.py	Sat May 07 21:12:33 2011 +0200
+++ b/mercurial/util.py	Sat May 07 21:12:35 2011 +0200
@@ -772,7 +772,7 @@
     makedirs(name, mode)
 
 def readfile(path):
-    fp = open(path)
+    fp = open(path, 'rb')
     try:
         return fp.read()
     finally: