1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-06 09:31:03 +08:00

mingw.py: check for None via 'is', not '=='.

This commit is contained in:
Roman Lebedev 2019-11-22 23:39:56 +03:00
parent 173aff82ee
commit 74e112ae9d
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0

View File

@ -204,7 +204,7 @@ def root(location = None, arch = None, version = None, threading = None,
exceptions = 'sjlj'
else:
exceptions = keys[0]
if revision == None:
if revision is None:
revision = max(versions[version][arch][threading][exceptions].keys())
if not location:
location = os.path.join(tempfile.gettempdir(), 'mingw-builds')