diff options
author | Alexander Nestorov <alexandernst@gmail.com> | 2014-09-20 15:16:09 +0200 |
---|---|---|
committer | Alexander Nestorov <alexandernst@gmail.com> | 2014-09-20 15:16:09 +0200 |
commit | cdf85bb48a08df9d7ed3f3063a87fbde67b151bd (patch) | |
tree | 302a10fc6b6cfb3fe344d75b71906751ba45a3bb | |
parent | 335cafa54296c866215c1259a899d4fc55ca4f86 (diff) | |
download | Git-Auto-Deploy-cdf85bb48a08df9d7ed3f3063a87fbde67b151bd.zip Git-Auto-Deploy-cdf85bb48a08df9d7ed3f3063a87fbde67b151bd.tar.gz Git-Auto-Deploy-cdf85bb48a08df9d7ed3f3063a87fbde67b151bd.tar.bz2 |
Python is not C
-rwxr-xr-x | GitAutoDeploy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py index c59018b..fccd6bb 100755 --- a/GitAutoDeploy.py +++ b/GitAutoDeploy.py @@ -145,8 +145,8 @@ class GitAutoDeployMain: def read_pidfile(self): f = open(GitAutoDeploy.getConfig()['pidfilepath'],'r') - pid = f.readlines(); - return pid; + pid = f.readlines() + return pid def remove_pidfile(self): os.remove(GitAutoDeploy.getConfig()['pidfilepath']) @@ -191,7 +191,7 @@ class GitAutoDeployMain: if(mpid != False): print 'Process with pid number', mpid, 'is using port', decport with open("/proc/%s/cmdline" % mpid) as f: - cmdline = f.readlines(); + cmdline = f.readlines() print 'cmdline ->', cmdline[0].replace('\x00', ' ') def stop(self): |