Show More
@@ -35,6 +35,11 b' except ImportError:' | |||||
35 | if '__pypy__' in sys.builtin_module_names: |
|
35 | if '__pypy__' in sys.builtin_module_names: | |
36 | modulepolicy = 'py' |
|
36 | modulepolicy = 'py' | |
37 |
|
37 | |||
|
38 | # Our C extensions aren't yet compatible with Python 3. So use pure Python | |||
|
39 | # on Python 3 for now. | |||
|
40 | if sys.version_info[0] >= 3: | |||
|
41 | modulepolicy = 'py' | |||
|
42 | ||||
38 | # Environment variable can always force settings. |
|
43 | # Environment variable can always force settings. | |
39 | modulepolicy = os.environ.get('HGMODULEPOLICY', modulepolicy) |
|
44 | modulepolicy = os.environ.get('HGMODULEPOLICY', modulepolicy) | |
40 |
|
45 |
General Comments 0
You need to be logged in to leave comments.
Login now