Show More
@@ -277,6 +277,11 b' def has_msys():' | |||
|
277 | 277 | def has_aix(): |
|
278 | 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 | 285 | checks = { |
|
281 | 286 | "true": (lambda: True, "yak shaving"), |
|
282 | 287 | "false": (lambda: False, "nail clipper"), |
@@ -318,4 +323,5 b' checks = {' | |||
|
318 | 323 | "windows": (has_windows, "Windows"), |
|
319 | 324 | "msys": (has_msys, "Windows with MSYS"), |
|
320 | 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