# HG changeset patch # User Rishabh Madan # Date 1489569678 -19800 # Node ID 10c17f8bfcf3c67a2fae6749df7777e608606818 # Parent ea0395eec67b53484923ade3c1b21020a57f1bbc py3: open file in rb mode diff -r ea0395eec67b -r 10c17f8bfcf3 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