Made lockhandler.delete be called lockhandler.remove to match all other handlers. Kept the old one as a deprecated alias.

This commit is contained in:
Griatch 2015-09-26 12:48:55 +02:00
parent 35583daed2
commit a8e75dde7f

View file

@ -364,7 +364,7 @@ class LockHandler(object):
return self.locks.get(access_type, ["", "", ""])[2] return self.locks.get(access_type, ["", "", ""])[2]
return str(self) return str(self)
def delete(self, access_type): def remove(self, access_type):
""" """
Remove a particular lock from the handler Remove a particular lock from the handler
@ -381,6 +381,7 @@ class LockHandler(object):
self._save_locks() self._save_locks()
return True return True
return False return False
delete = remove # alias for historical reasons
def clear(self): def clear(self):
""" """