Commit b1745eda authored by Hanno Schlichting's avatar Hanno Schlichting

Avoid a has_key

parent 8121aef8
...@@ -138,8 +138,8 @@ class Permission: ...@@ -138,8 +138,8 @@ class Permission:
return self.name return self.name
_registeredPermissions={} _registeredPermissions = {}
_registerdPermission=_registeredPermissions.has_key _registerdPermission = _registeredPermissions.__contains__
def registerPermissions(permissions, defaultDefault=('Manager', )): def registerPermissions(permissions, defaultDefault=('Manager', )):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment