equal
deleted
inserted
replaced
37 policy = 'cffi' |
37 policy = 'cffi' |
38 |
38 |
39 # Our C extensions aren't yet compatible with Python 3. So use pure Python |
39 # Our C extensions aren't yet compatible with Python 3. So use pure Python |
40 # on Python 3 for now. |
40 # on Python 3 for now. |
41 if sys.version_info[0] >= 3: |
41 if sys.version_info[0] >= 3: |
42 policy = 'py' |
42 policy = b'py' |
43 |
43 |
44 # Environment variable can always force settings. |
44 # Environment variable can always force settings. |
45 policy = os.environ.get('HGMODULEPOLICY', policy) |
45 policy = os.environ.get('HGMODULEPOLICY', policy) |