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