Skip to content

Commit

Permalink
using 'is None' instead of '== None'
Browse files Browse the repository at this point in the history
  • Loading branch information
will mclafferty committed May 27, 2015
1 parent 8fb8497 commit b9f6bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.py
Expand Up @@ -210,7 +210,7 @@ def get_pid(self):
def is_running(self):
pid = self.get_pid()

if pid == None:
if pid is None:
print 'Process is stopped'
elif os.path.exists('/proc/%d' % pid):
print 'Process (pid %d) is running...' % pid
Expand Down

0 comments on commit b9f6bbc

Please sign in to comment.