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:
parent
35583daed2
commit
a8e75dde7f
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue