changeset 31412:10c17f8bfcf3

py3: open file in rb mode
author Rishabh Madan <rishabhmadan96@gmail.com>
date Wed, 15 Mar 2017 14:51:18 +0530
parents ea0395eec67b
children 7409eb69731f
files mercurial/match.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/match.py	Tue Mar 14 13:10:30 2017 -0700
+++ b/mercurial/match.py	Wed Mar 15 14:51:18 2017 +0530
@@ -742,7 +742,7 @@
     syntax = 'relre:'
     patterns = []
 
-    fp = open(filepath)
+    fp = open(filepath, 'rb')
     for lineno, line in enumerate(util.iterfile(fp), start=1):
         if "#" in line:
             global _commentre