summaryrefslogtreecommitdiff
path: root/Mailman/LockFile.py
diff options
context:
space:
mode:
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.