changeset 19158:c9431c711ddb

Merge with stable.
author Augie Fackler <raf@durin42.com>
date Thu, 09 May 2013 09:51:42 -0400
parents 113681bbef9e (current diff) ed1a212193dc (diff)
children f6109ee404d5
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/subrepo.py	Wed May 08 14:11:01 2013 -0700
+++ b/mercurial/subrepo.py	Thu May 09 09:51:42 2013 -0400
@@ -31,7 +31,7 @@
 def _calcfilehash(filename):
     data = ''
     if os.path.exists(filename):
-        fd = open(filename)
+        fd = open(filename, 'rb')
         data = fd.read()
         fd.close()
     return util.sha1(data).hexdigest()