Show More
@@ -33,8 +33,8 b' except ImportError:' | |||||
33 | # |
|
33 | # | |
34 | # The canonical way to do this is to test platform.python_implementation(). |
|
34 | # The canonical way to do this is to test platform.python_implementation(). | |
35 | # But we don't import platform and don't bloat for it here. |
|
35 | # But we don't import platform and don't bloat for it here. | |
36 | if '__pypy__' in sys.builtin_module_names: |
|
36 | if r'__pypy__' in sys.builtin_module_names: | |
37 | policy = 'cffi' |
|
37 | policy = b'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. | |
@@ -43,7 +43,7 b' if sys.version_info[0] >= 3:' | |||||
43 |
|
43 | |||
44 | # Environment variable can always force settings. |
|
44 | # Environment variable can always force settings. | |
45 | if sys.version_info[0] >= 3: |
|
45 | if sys.version_info[0] >= 3: | |
46 | if 'HGMODULEPOLICY' in os.environ: |
|
46 | if r'HGMODULEPOLICY' in os.environ: | |
47 | policy = os.environ['HGMODULEPOLICY'].encode('utf-8') |
|
47 | policy = os.environ[r'HGMODULEPOLICY'].encode(r'utf-8') | |
48 | else: |
|
48 | else: | |
49 | policy = os.environ.get('HGMODULEPOLICY', policy) |
|
49 | policy = os.environ.get(r'HGMODULEPOLICY', policy) |
General Comments 0
You need to be logged in to leave comments.
Login now