Show More
@@ -277,6 +277,11 def has_msys(): | |||||
277 | def has_aix(): |
|
277 | def has_aix(): | |
278 | return sys.platform.startswith("aix") |
|
278 | return sys.platform.startswith("aix") | |
279 |
|
279 | |||
|
280 | def has_absimport(): | |||
|
281 | import __future__ | |||
|
282 | from mercurial import util | |||
|
283 | return util.safehasattr(__future__, "absolute_import") | |||
|
284 | ||||
280 | checks = { |
|
285 | checks = { | |
281 | "true": (lambda: True, "yak shaving"), |
|
286 | "true": (lambda: True, "yak shaving"), | |
282 | "false": (lambda: False, "nail clipper"), |
|
287 | "false": (lambda: False, "nail clipper"), | |
@@ -318,4 +323,5 checks = { | |||||
318 | "windows": (has_windows, "Windows"), |
|
323 | "windows": (has_windows, "Windows"), | |
319 | "msys": (has_msys, "Windows with MSYS"), |
|
324 | "msys": (has_msys, "Windows with MSYS"), | |
320 | "aix": (has_aix, "AIX"), |
|
325 | "aix": (has_aix, "AIX"), | |
|
326 | "absimport": (has_absimport, "absolute_import in __future__"), | |||
321 | } |
|
327 | } |
General Comments 0
You need to be logged in to leave comments.
Login now