summaryrefslogtreecommitdiffstats
path: root/GitAutoDeploy.py
diff options
context:
space:
mode:
authorAlexander Nestorov <alexandernst@gmail.com>2014-09-20 15:16:09 +0200
committerAlexander Nestorov <alexandernst@gmail.com>2014-09-20 15:16:09 +0200
commitcdf85bb48a08df9d7ed3f3063a87fbde67b151bd (patch)
tree302a10fc6b6cfb3fe344d75b71906751ba45a3bb /GitAutoDeploy.py
parent335cafa54296c866215c1259a899d4fc55ca4f86 (diff)
downloadGit-Auto-Deploy-cdf85bb48a08df9d7ed3f3063a87fbde67b151bd.zip
Git-Auto-Deploy-cdf85bb48a08df9d7ed3f3063a87fbde67b151bd.tar.gz
Git-Auto-Deploy-cdf85bb48a08df9d7ed3f3063a87fbde67b151bd.tar.bz2
Python is not C
Diffstat (limited to 'GitAutoDeploy.py')
-rwxr-xr-xGitAutoDeploy.py6
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):