101
101
self.filename = realpath(filename)
102
102
if self.filename in self.open_locks:
105
105
# reserve a slot for this lock - even if the lockf call fails,
106
106
# at thisi point unlock() will be called, because self.f is set.
107
107
# TODO: make this fully threadsafe, if we decide we care.