Submitter | phabricator |
---|---|
Date | Feb. 5, 2018, 2:27 p.m. |
Message ID | <37b7f00c683cb47d436764071e9b93b8@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/27323/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -281,7 +281,7 @@ nodeid = None diffstart = 0 - for line in file(pf): + for line in open(pf, 'rb'): line = line.rstrip() if (line.startswith('diff --git') or (diffstart and line.startswith('+++ '))):