Revision 34ca3914 lib/locking.py
b/lib/locking.py | ||
---|---|---|
452 | 452 |
# First we look the locks up on __lockdict. We have no way of being sure |
453 | 453 |
# they will still be there after, but this makes it a lot faster should |
454 | 454 |
# just one of them be the already wrong |
455 |
for lname in names:
|
|
455 |
for lname in utils.UniqueSequence(names):
|
|
456 | 456 |
try: |
457 | 457 |
lock = self.__lockdict[lname] # raises KeyError if lock is not there |
458 | 458 |
acquire_list.append((lname, lock)) |
Also available in: Unified diff