comparison hg @ 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 5e78c100a215
children 99e231afc29c
comparison
equal deleted inserted replaced
43072:058c2468b2f5 43073:5c9c71cde1c9
8 # GNU General Public License version 2 or any later version. 8 # GNU General Public License version 2 or any later version.
9 from __future__ import absolute_import 9 from __future__ import absolute_import
10 10
11 import os 11 import os
12 import sys 12 import sys
13
14 if os.environ.get('HGUNICODEPEDANTRY', False):
15 try:
16 reload(sys)
17 sys.setdefaultencoding("undefined")
18 except NameError:
19 pass
20 13
21 libdir = '@LIBDIR@' 14 libdir = '@LIBDIR@'
22 15
23 if libdir != '@' 'LIBDIR' '@': 16 if libdir != '@' 'LIBDIR' '@':
24 if not os.path.isabs(libdir): 17 if not os.path.isabs(libdir):