Revision 9b154270

b/lib/locking.py
895 895
    for lname in utils.UniqueSequence(names):
896 896
      try:
897 897
        lock = self.__lockdict[lname] # raises KeyError if lock is not there
898
        acquire_list.append((lname, lock))
899 898
      except KeyError:
900 899
        if want_all:
901 900
          # We are acquiring all the set, it doesn't matter if this particular
......
904 903

  
905 904
        raise errors.LockError("Non-existing lock in set (%s)" % lname)
906 905

  
906
      acquire_list.append((lname, lock))
907

  
907 908
    # This will hold the locknames we effectively acquired.
908 909
    acquired = set()
909 910

  

Also available in: Unified diff