D4249: contrib: have check-code look at files in latin1 instead of ascii
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri Aug 10 06:21:30 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This way all files open. So far none of our patterns look like they'll care.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4249
AFFECTED FILES
contrib/check-code.py
CHANGE DETAILS
diff --git a/contrib/check-code.py b/contrib/check-code.py
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -30,7 +30,7 @@
opentext = open
else:
def opentext(f):
- return open(f, encoding='ascii')
+ return open(f, encoding='latin1')
try:
xrange
except NameError:
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list