Fix syntax: "rc != None" -> "rc is not None"

This commit is contained in:
Florent Xicluna 2010-03-08 10:58:12 +00:00
parent 52584779a6
commit cf741ceb69
2 changed files with 2 additions and 2 deletions

View file

@ -541,7 +541,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)

View file

@ -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)