From b9f6bbc87e25e344509a3c23eeca2f1652dcac7b Mon Sep 17 00:00:00 2001 From: will mclafferty Date: Tue, 26 May 2015 17:02:52 -0700 Subject: [PATCH] using 'is None' instead of '== None' --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 3827407..ec9894a 100644 --- a/daemon.py +++ b/daemon.py @@ -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