equal
deleted
inserted
replaced
583 |
583 |
584 @check("demandimport", "demandimport enabled") |
584 @check("demandimport", "demandimport enabled") |
585 def has_demandimport(): |
585 def has_demandimport(): |
586 return os.environ.get('HGDEMANDIMPORT') != 'disable' |
586 return os.environ.get('HGDEMANDIMPORT') != 'disable' |
587 |
587 |
588 @check("absimport", "absolute_import in __future__") |
|
589 def has_absimport(): |
|
590 import __future__ |
|
591 from mercurial import util |
|
592 return util.safehasattr(__future__, "absolute_import") |
|
593 |
|
594 @check("py3k", "running with Python 3.x") |
588 @check("py3k", "running with Python 3.x") |
595 def has_py3k(): |
589 def has_py3k(): |
596 return 3 == sys.version_info[0] |
590 return 3 == sys.version_info[0] |
597 |
591 |
598 @check("py3exe", "a Python 3.x interpreter is available") |
592 @check("py3exe", "a Python 3.x interpreter is available") |