Skip to content

Commit

Permalink
Merge 8427-rodrigc-implements: Replace zope.interface.implements() wi…
Browse files Browse the repository at this point in the history
…th @zope.interface.implementer in twisted/python

Author: rodrigc
Reviewer: alex
Fixes: twisted#8427
  • Loading branch information
hawkowl authored Jun 11, 2016
2 parents e8965c3 + 6ca68fa commit 8a81a90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twisted/python/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
Using the Zope3 API directly is strongly recommended. Everything
you need is in the top-level of the zope.interface package, e.g.::
from zope.interface import Interface, implements
from zope.interface import Interface, implementer
class IFoo(Interface):
pass
@implementer(IFoo)
class Foo:
implements(IFoo)
print IFoo.implementedBy(Foo) # True
print IFoo.providedBy(Foo()) # True
Expand Down
Empty file added twisted/topfiles/8427.misc
Empty file.

0 comments on commit 8a81a90

Please sign in to comment.