diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-03-29 15:24:25 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-03-29 15:24:25 (GMT) |
commit | 5b63acd31e0e40c1a9a9e9762905b0054ff37994 (patch) | |
tree | 763a6e10d4c0fa64797f5311491a3cbeb0f7e5d9 /Mac/BuildScript | |
parent | 672fbf519568bc295aa64992dcbabe0eebccb5fc (diff) | |
download | cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.zip cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.gz cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.bz2 |
#2503 make singletons compared with "is" not == or !=
Thanks to Wummel for the patch
Diffstat (limited to 'Mac/BuildScript')
-rwxr-xr-x | Mac/BuildScript/build-installer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py index 8bdebe6..37974e9 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -289,7 +289,7 @@ def runCommand(commandline): fd = os.popen(commandline, 'r') data = fd.read() xit = fd.close() - if xit != None: + if xit is not None: sys.stdout.write(data) raise RuntimeError, "command failed: %s"%(commandline,) @@ -300,7 +300,7 @@ def captureCommand(commandline): fd = os.popen(commandline, 'r') data = fd.read() xit = fd.close() - if xit != None: + if xit is not None: sys.stdout.write(data) raise RuntimeError, "command failed: %s"%(commandline,) |