mercurial/policy.py
changeset 31308 62939e0148f1
parent 29490 b4d117cee636
child 31361 8a17c541177f
equal deleted inserted replaced
31307:f8d41edd0357 31308:62939e0148f1
    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)