# HG changeset patch # User Augie Fackler # Date 2018-08-10 06:17:50 # Node ID c52a8af4052af24a69045b0c92d83adee2de89ac # Parent dcecf772756ab5764d08700853a87b39a3f1adac contrib: have check-code look at files in latin1 instead of ascii This way all files open. So far none of our patterns look like they'll care. Differential Revision: https://phab.mercurial-scm.org/D4249 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 @@ if sys.version_info[0] < 3: opentext = open else: def opentext(f): - return open(f, encoding='ascii') + return open(f, encoding='latin1') try: xrange except NameError: