##// END OF EJS Templates
policy: remove Python 2.7 compatibility code...
Gregory Szorc -
r49793:f98da134 default
parent child Browse files
Show More
@@ -53,11 +53,8 b" if '__pypy__' in sys.builtin_module_name"
53 policy = b'cffi'
53 policy = b'cffi'
54
54
55 # Environment variable can always force settings.
55 # Environment variable can always force settings.
56 if sys.version_info[0] >= 3:
56 if 'HGMODULEPOLICY' in os.environ:
57 if 'HGMODULEPOLICY' in os.environ:
57 policy = os.environ['HGMODULEPOLICY'].encode('utf-8')
58 policy = os.environ['HGMODULEPOLICY'].encode('utf-8')
59 else:
60 policy = os.environ.get('HGMODULEPOLICY', policy)
61
58
62
59
63 def _importfrom(pkgname, modname):
60 def _importfrom(pkgname, modname):
General Comments 0
You need to be logged in to leave comments. Login now