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

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