Show More
@@ -523,6 +523,10 b' def has_absimport():' | |||||
523 | from mercurial import util |
|
523 | from mercurial import util | |
524 | return util.safehasattr(__future__, "absolute_import") |
|
524 | return util.safehasattr(__future__, "absolute_import") | |
525 |
|
525 | |||
|
526 | @check("py27+", "running with Python 2.7+") | |||
|
527 | def has_python27ornewer(): | |||
|
528 | return sys.version_info[0:2] >= (2, 7) | |||
|
529 | ||||
526 | @check("py3k", "running with Python 3.x") |
|
530 | @check("py3k", "running with Python 3.x") | |
527 | def has_py3k(): |
|
531 | def has_py3k(): | |
528 | return 3 == sys.version_info[0] |
|
532 | return 3 == sys.version_info[0] |
General Comments 0
You need to be logged in to leave comments.
Login now