commit | cf741ceb69f951448a61a2f654b198c1cde0c579 | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Mon Mar 08 10:58:12 2010 +0000 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Mon Mar 08 10:58:12 2010 +0000 |
tree | 354499513c4175017d6abcaa17d0435500e9c439 | |
parent | 52584779a6484fcc85d9172c7fdabedb9f36a9d6 [diff] [blame] |
Fix syntax: "rc != None" -> "rc is not None"
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 0dac62e..9f4b904 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst
@@ -541,7 +541,7 @@ 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)