diff hgext/remotefilelog/debugcommands.py @ 40614:aa588bf40a08

py3: add b suffix to make sure file is opened in bytes mode Differential Revision: https://phab.mercurial-scm.org/D5263
author Pulkit Goyal <pulkit@yandex-team.ru>
date Tue, 13 Nov 2018 18:08:55 +0300
parents 3fa4183e7803
children feae4d1f5e01
line wrap: on
line diff
--- a/hgext/remotefilelog/debugcommands.py	Tue Nov 13 18:08:17 2018 +0300
+++ b/hgext/remotefilelog/debugcommands.py	Tue Nov 13 18:08:55 2018 +0300
@@ -176,7 +176,7 @@
 
 def parsefileblob(path, decompress):
     raw = None
-    f = open(path, "r")
+    f = open(path, "rb")
     try:
         raw = f.read()
     finally: