Commit 5a35f3ae authored by Xavier de Gaye's avatar Xavier de Gaye

Issue #26934: Handle _ANDROID_API_LEVEL is None on Windows

parent 4d85ee31
......@@ -736,7 +736,7 @@ requires_lzma = unittest.skipUnless(lzma, 'requires lzma')
is_jython = sys.platform.startswith('java')
_ANDROID_API_LEVEL = sysconfig.get_config_var('ANDROID_API_LEVEL')
is_android = (_ANDROID_API_LEVEL > 0)
is_android = (_ANDROID_API_LEVEL is not None and _ANDROID_API_LEVEL > 0)
if sys.platform != 'win32':
unix_shell = '/system/bin/sh' if is_android else '/bin/sh'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment