Mercurial > hg
comparison tests/run-tests.py @ 43073:5c9c71cde1c9
hg: remove HGUNICODEPEDANTRY and RTUNICODEPEDANTRY
This was added in 73e4a02e6d23 and 89822d7a9d5f as a preliminary
way to better support Python 3. With the Python 3 port nearly done
and better procedures in place, we shouldn't need it.
Differential Revision: https://phab.mercurial-scm.org/D6991
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 05 Oct 2019 17:01:02 -0400 |
parents | e360acfaf210 |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
43072:058c2468b2f5 | 43073:5c9c71cde1c9 |
---|---|
77 import shlex | 77 import shlex |
78 shellquote = shlex.quote | 78 shellquote = shlex.quote |
79 except (ImportError, AttributeError): | 79 except (ImportError, AttributeError): |
80 import pipes | 80 import pipes |
81 shellquote = pipes.quote | 81 shellquote = pipes.quote |
82 | |
83 if os.environ.get('RTUNICODEPEDANTRY', False): | |
84 try: | |
85 reload(sys) | |
86 sys.setdefaultencoding("undefined") | |
87 except NameError: | |
88 pass | |
89 | 82 |
90 processlock = threading.Lock() | 83 processlock = threading.Lock() |
91 | 84 |
92 pygmentspresent = False | 85 pygmentspresent = False |
93 # ANSI color is unsupported prior to Windows 10 | 86 # ANSI color is unsupported prior to Windows 10 |