mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Fix syntax: "rc != None" -> "rc is not None"
This commit is contained in:
parent
52584779a6
commit
cf741ceb69
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue