[Zope3-checkins] CVS: Zope3/src/zope/interface - type.py:1.10
Steve Alexander
steve@cat-box.net
Sat, 7 Jun 2003 02:38:00 -0400
Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv4294/src/zope/interface
Modified Files:
type.py
Log Message:
updated to use new-style interface declarations
=== Zope3/src/zope/interface/type.py 1.9 => 1.10 ===
--- Zope3/src/zope/interface/type.py:1.9 Tue Jun 3 18:46:25 2003
+++ Zope3/src/zope/interface/type.py Sat Jun 7 02:37:29 2003
@@ -19,13 +19,13 @@
"""
__metaclass__ = type # All classes are new style when run with Python 2.2+
-from zope.interface import providedBy
+from zope.interface import providedBy, implements
from zope.interface.interfaces import IInterface
from zope.interface.interfaces import ITypeRegistry
class TypeRegistry:
- __implements__ = ITypeRegistry
+ implements(ITypeRegistry)
# XXX This comment doesn't seem to be correct, because the mapping is
# from interface -> object. There are no tuples that I see. Also,