Skip to content

Commit

Permalink
Fix deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Apr 9, 2020
1 parent ec4b30b commit 4638e88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def read(*rnames):
'zope.component',
'zope.configuration',
'zope.i18nmessageid',
'zope.interface',
'zope.interface >= 3.8',
'zope.location',
'zope.schema',
'zope.security',
Expand Down
8 changes: 4 additions & 4 deletions src/zope/securitypolicy/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def setIdOnActivation(role, event):
>>> role1 = LocalRole('Role 1', 'A first role')
>>> role1.id
u'<role not activated>'
>>> import zope.component.interfaces
>>> event = zope.component.interfaces.Registered(
>>> import zope.interface.interfaces
>>> event = zope.interface.interfaces.Registered(
... Registration(role1, 'role1'))
Now we pass the event into this function, and the id of the role should be
Expand All @@ -87,8 +87,8 @@ def unsetIdOnDeactivation(role, event):
>>> role1 = LocalRole('Role 1', 'A first role')
>>> role1.id = 'role1'
>>> import zope.component.interfaces
>>> event = zope.component.interfaces.Unregistered(
>>> import zope.interface.interfaces
>>> event = zope.interface.interfaces.Unregistered(
... Registration(role1, 'role1'))
Now we pass the event into this function, and the id of the role should be
Expand Down

0 comments on commit 4638e88

Please sign in to comment.