diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-08 10:58:12 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-08 10:58:12 (GMT) |
commit | cf741ceb69f951448a61a2f654b198c1cde0c579 (patch) | |
tree | 354499513c4175017d6abcaa17d0435500e9c439 /Lib/subprocess.py | |
parent | 52584779a6484fcc85d9172c7fdabedb9f36a9d6 (diff) | |
download | cpython-cf741ceb69f951448a61a2f654b198c1cde0c579.zip cpython-cf741ceb69f951448a61a2f654b198c1cde0c579.tar.gz cpython-cf741ceb69f951448a61a2f654b198c1cde0c579.tar.bz2 |
Fix syntax: "rc != None" -> "rc is not None"
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index ba5ce01..59ed60c 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -349,7 +349,7 @@ Return code handling translates as follows: pipe = os.popen("cmd", 'w') ... rc = pipe.close() -if rc != None and rc % 256: +if rc is not None and rc % 256: print "There were some errors" ==> process = Popen("cmd", 'w', shell=True, stdin=PIPE) |