Show More
@@ -282,6 +282,9 b' def has_absimport():' | |||||
282 | from mercurial import util |
|
282 | from mercurial import util | |
283 | return util.safehasattr(__future__, "absolute_import") |
|
283 | return util.safehasattr(__future__, "absolute_import") | |
284 |
|
284 | |||
|
285 | def has_py3k(): | |||
|
286 | return 3 == sys.version_info[0] | |||
|
287 | ||||
285 | checks = { |
|
288 | checks = { | |
286 | "true": (lambda: True, "yak shaving"), |
|
289 | "true": (lambda: True, "yak shaving"), | |
287 | "false": (lambda: False, "nail clipper"), |
|
290 | "false": (lambda: False, "nail clipper"), | |
@@ -324,4 +327,5 b' checks = {' | |||||
324 | "msys": (has_msys, "Windows with MSYS"), |
|
327 | "msys": (has_msys, "Windows with MSYS"), | |
325 | "aix": (has_aix, "AIX"), |
|
328 | "aix": (has_aix, "AIX"), | |
326 | "absimport": (has_absimport, "absolute_import in __future__"), |
|
329 | "absimport": (has_absimport, "absolute_import in __future__"), | |
|
330 | "py3k": (has_py3k, "running with Python 3.x"), | |||
327 | } |
|
331 | } |
General Comments 0
You need to be logged in to leave comments.
Login now