Commit 9346f9b7 authored by Tim Peters's avatar Tim Peters

If we're depending on zope.interface now, go all the way.

parent 570654cf
...@@ -12,8 +12,7 @@ ...@@ -12,8 +12,7 @@
# #
############################################################################## ##############################################################################
import OOBTree, Interface from zope.interface import Interface
from Interface import Interface
class ICollection(Interface): class ICollection(Interface):
...@@ -390,11 +389,3 @@ class IMergeIntegerKey(IMerge): ...@@ -390,11 +389,3 @@ class IMergeIntegerKey(IMerge):
# Eventually, I need to express this through the interfaces. # Eventually, I need to express this through the interfaces.
# #
################################################################ ################################################################
# XXX Need to use the new declaration syntax once it is available
# for Zope 2.
## OOBTree.OOSet.__implements__=ISet
## OOBTree.OOTreeSet.__implements__=ITreeSet
## OOBTree.OOBucket.__implements__=IDictionaryIsh
## OOBTree.OOBTree.__implements__=IBTree
...@@ -15,18 +15,9 @@ ...@@ -15,18 +15,9 @@
$Id$ $Id$
""" """
try:
from zope.interface import Interface
from zope.interface import Attribute
except ImportError:
# just allow the module to compile if zope isn't available from zope.interface import Interface
from zope.interface import Attribute
class Interface(object):
pass
def Attribute(s):
return s
class IPersistent(Interface): class IPersistent(Interface):
"""Python persistent interface """Python persistent interface
......
...@@ -15,12 +15,8 @@ ...@@ -15,12 +15,8 @@
$Id$ $Id$
""" """
try:
from zope.interface import Interface
except ImportError:
class Interface:
pass
from zope.interface import Interface
class IDataManager(Interface): class IDataManager(Interface):
"""Data management interface for storing objects transactionally """Data management interface for storing objects transactionally
......
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