mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 03:57:17 +02:00
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 str(self)
|
||||
|
||||
def delete(self, access_type):
|
||||
def remove(self, access_type):
|
||||
"""
|
||||
Remove a particular lock from the handler
|
||||
|
||||
|
|
@ -381,6 +381,7 @@ class LockHandler(object):
|
|||
self._save_locks()
|
||||
return True
|
||||
return False
|
||||
delete = remove # alias for historical reasons
|
||||
|
||||
def clear(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue