Return a more useful name for the file lock (which shows what file is being locked).

This commit is contained in:
Joshua Harlow 2012-07-09 20:34:10 -07:00
parent 83baae9582
commit 54ec0fdbf4
1 changed files with 3 additions and 0 deletions

View File

@ -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):