Show More
@@ -65,7 +65,7 b' class lock(object):' | |||
|
65 | 65 | timeout = self.timeout |
|
66 | 66 | while True: |
|
67 | 67 | try: |
|
68 | self.trylock() | |
|
68 | self._trylock() | |
|
69 | 69 | return self.timeout - timeout |
|
70 | 70 | except error.LockHeld as inst: |
|
71 | 71 | if timeout != 0: |
@@ -76,7 +76,7 b' class lock(object):' | |||
|
76 | 76 | raise error.LockHeld(errno.ETIMEDOUT, inst.filename, self.desc, |
|
77 | 77 | inst.locker) |
|
78 | 78 | |
|
79 | def trylock(self): | |
|
79 | def _trylock(self): | |
|
80 | 80 | if self.held: |
|
81 | 81 | self.held += 1 |
|
82 | 82 | return |
General Comments 0
You need to be logged in to leave comments.
Login now