[Zope3-checkins] CVS: Zope3/src/zodb/code - interfaces.py:1.3
Jeremy Hylton
jeremy@zope.com
Mon, 30 Dec 2002 12:21:28 -0500
Update of /cvs-repository/Zope3/src/zodb/code
In directory cvs.zope.org:/tmp/cvs-serv19272
Modified Files:
interfaces.py
Log Message:
Simplify interface imports
=== Zope3/src/zodb/code/interfaces.py 1.2 => 1.3 ===
--- Zope3/src/zodb/code/interfaces.py:1.2 Wed Dec 25 09:12:18 2002
+++ Zope3/src/zodb/code/interfaces.py Mon Dec 30 12:21:28 2002
@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-from zope.interface import Interface
+from zope.interface import Interface, Attribute
class IPersistentModuleImportRegistry(Interface):
@@ -31,16 +31,6 @@
Raises KeyError in module is not registered.
"""
-
-
-
-try:
- from zope.interface import Interface, Attribute
-except ImportError:
- class Interface:
- pass
- def Attribute(x):
- return x
class IPersistentModuleManager(Interface):