summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Jehannet <julien.jehannet@logilab.fr>2009-01-19 20:55:39 +0100
committerJulien Jehannet <julien.jehannet@logilab.fr>2009-01-19 20:55:39 +0100
commit5af9c6201892c81db1c2efd0e2ba640248e52d49 (patch)
tree35976f62c8d8042ab53b022c48ccdb287618c0f4
parent1d7e10af48672a2b4ba2d4512d2a106280b90717 (diff)
downloadlogilab-common-5af9c6201892c81db1c2efd0e2ba640248e52d49.tar.gz
typo
-rw-r--r--shellutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/shellutils.py b/shellutils.py
index 4cfe9a3..d964705 100644
--- a/shellutils.py
+++ b/shellutils.py
@@ -219,7 +219,7 @@ def acquire_lock(lock_file, max_try=10, delay=10):
# only print the message one time
if count == max_try:
diff = (int(time.time()) - pi.age()) / 60
- print("Command '%s' (pid %s) have locked the file '%s' for %s minutes.\nWaiting..." % (pi.name(), pid, lock_file, diff))
+ print("Command '%s' (pid %s) has locked the file '%s' for %s minutes.\nWaiting..." % (pi.name(), pid, lock_file, diff))
except NoSuchProcess:
raise NoSuchProcess('You can delete the lock file "%s" safely' % lock_file)
except: