158
158
def __init__(self, filename):
159
159
super(_fcntl_ReadLock, self).__init__()
160
160
self.filename = osutils.realpath(filename)
163
163
_fcntl_ReadLock._open_locks.setdefault(self.filename, 0)
164
164
_fcntl_ReadLock._open_locks[self.filename] += 1
165
165
self._open(filename, 'rb')