Commit dcc461b9 authored by Marius Gedminas's avatar Marius Gedminas

Refactoring: use alsoProvides instead of inlining it.

parent 984738d8
......@@ -325,9 +325,7 @@ def containedEvent(object, container, name=None):
if not IContained.providedBy(object):
if ILocation.providedBy(object):
zope.interface.directlyProvides(
object, IContained,
zope.interface.directlyProvidedBy(object))
zope.interface.alsoProvides(object, IContained)
else:
object = ContainedProxy(object)
......
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