py3: open file in rb mode
authorRishabh Madan <rishabhmadan96@gmail.com>
Wed, 15 Mar 2017 14:51:18 +0530
changeset 31403 10c17f8bfcf3
parent 31402 ea0395eec67b
child 31404 7409eb69731f
py3: open file in rb mode
mercurial/match.py
--- 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