Kaydet (Commit) cf741ceb authored tarafından Florent Xicluna's avatar Florent Xicluna

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

üst 52584779
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment