summaryrefslogtreecommitdiff
path: root/Mailman/LockFile.py
diff options
context:
space:
mode:
authorbwarsaw2002-03-01 20:02:51 +0000
committerbwarsaw2002-03-01 20:02:51 +0000
commit685e0075fde34efa9d6ec93bcafaf3d97f5a15a6 (patch)
treec307d49e72bc481ce3427119fd72930b67156b1e /Mailman/LockFile.py
parent42e82c9e5ccf156b7c3a0106e6f9d0a3dbfcfdf7 (diff)
downloadmailman-685e0075fde34efa9d6ec93bcafaf3d97f5a15a6.tar.gz
mailman-685e0075fde34efa9d6ec93bcafaf3d97f5a15a6.tar.zst
mailman-685e0075fde34efa9d6ec93bcafaf3d97f5a15a6.zip
Diffstat (limited to 'Mailman/LockFile.py')
-rw-r--r--Mailman/LockFile.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/LockFile.py b/Mailman/LockFile.py
index fd390ddc8..a9052605d 100644
--- a/Mailman/LockFile.py
+++ b/Mailman/LockFile.py
@@ -179,6 +179,12 @@ class LockFile:
# For transferring ownership across a fork.
self.__owned = 1
+ def __repr__(self):
+ return '<LockFile %s: %s [%s: %ssec]>' % (
+ id(self), self.__lockfile,
+ self.locked() and 'locked' or 'unlocked',
+ self.__lifetime)
+
def set_lifetime(self, lifetime):
"""Set a new lock lifetime.