Return a more useful name for the file lock (which shows what file is being locked).
This commit is contained in:
parent
83baae9582
commit
54ec0fdbf4
@ -67,6 +67,9 @@ class FileLock(object):
|
||||
def __init__(self, fn):
|
||||
self.fn = fn
|
||||
|
||||
def __str__(self):
|
||||
return "<%s using file %r>" % (util.obj_name(self), self.fn)
|
||||
|
||||
|
||||
class FileSemaphores(object):
|
||||
def __init__(self, sem_path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user