Simplify and correct comparisons with None.

This commit is contained in:
Blair Zajac 2013-02-09 15:49:54 -08:00 committed by Michael DeHaan
commit fa8e653011
10 changed files with 16 additions and 16 deletions

View file

@ -132,7 +132,7 @@ def regular_generic_msg(hostname, result, oneline, caption):
def banner(msg):
if cowsay != None:
if cowsay:
cmd = subprocess.Popen([cowsay, "-W", "60", msg],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(out, err) = cmd.communicate()