[Checkins] SVN: zc.relationship/trunk/src/zc/relationship/ - remove
unused imports
Fred L. Drake, Jr.
fdrake at gmail.com
Fri Oct 6 17:17:42 EDT 2006
Log message for revision 70552:
- remove unused imports
- add missing import
Changed:
U zc.relationship/trunk/src/zc/relationship/index.py
U zc.relationship/trunk/src/zc/relationship/intid.py
U zc.relationship/trunk/src/zc/relationship/keyref.py
U zc.relationship/trunk/src/zc/relationship/shared.py
U zc.relationship/trunk/src/zc/relationship/tests.py
-=-
Modified: zc.relationship/trunk/src/zc/relationship/index.py
===================================================================
--- zc.relationship/trunk/src/zc/relationship/index.py 2006-10-05 21:26:51 UTC (rev 70551)
+++ zc.relationship/trunk/src/zc/relationship/index.py 2006-10-06 21:17:41 UTC (rev 70552)
@@ -1,5 +1,4 @@
import re
-import types
import persistent
import persistent.interfaces
Modified: zc.relationship/trunk/src/zc/relationship/intid.py
===================================================================
--- zc.relationship/trunk/src/zc/relationship/intid.py 2006-10-05 21:26:51 UTC (rev 70551)
+++ zc.relationship/trunk/src/zc/relationship/intid.py 2006-10-06 21:17:41 UTC (rev 70552)
@@ -15,13 +15,11 @@
$Id$
"""
-from zope import interface, component
-from BTrees import IOBTree, OOBTree, OIBTree, IIBTree
+from zope import interface
-from zope.app.intid.interfaces import IIntIds
-
from zc.relationship import interfaces, shared
+
def Container():
res = shared.Container()
interface.alsoProvides(res, interfaces.IIntIdRelationshipContainer)
Modified: zc.relationship/trunk/src/zc/relationship/keyref.py
===================================================================
--- zc.relationship/trunk/src/zc/relationship/keyref.py 2006-10-05 21:26:51 UTC (rev 70551)
+++ zc.relationship/trunk/src/zc/relationship/keyref.py 2006-10-06 21:17:41 UTC (rev 70552)
@@ -16,12 +16,13 @@
$Id$
"""
from zope import interface
-from BTrees import IOBTree, OOBTree, OIBTree, IIBTree
+from BTrees import OOBTree
from zope.app.keyreference.interfaces import IKeyReference
from zc.relationship import interfaces, shared
+
def generateObjToken(ob, index, cache, **kwargs):
return IKeyReference(ob)
Modified: zc.relationship/trunk/src/zc/relationship/shared.py
===================================================================
--- zc.relationship/trunk/src/zc/relationship/shared.py 2006-10-05 21:26:51 UTC (rev 70551)
+++ zc.relationship/trunk/src/zc/relationship/shared.py 2006-10-06 21:17:41 UTC (rev 70552)
@@ -18,7 +18,7 @@
import random
import persistent
-from zope import interface, component
+from zope import interface
import zope.app.container.contained
import zope.app.container.btree
Modified: zc.relationship/trunk/src/zc/relationship/tests.py
===================================================================
--- zc.relationship/trunk/src/zc/relationship/tests.py 2006-10-05 21:26:51 UTC (rev 70551)
+++ zc.relationship/trunk/src/zc/relationship/tests.py 2006-10-06 21:17:41 UTC (rev 70552)
@@ -26,7 +26,7 @@
from ZODB.interfaces import IConnection
from ZODB.tests.util import DB
-from zope import component, interface
+from zope import component
import zope.component.interfaces
import zope.location.interfaces
from zope.app.testing import placelesssetup
@@ -36,7 +36,7 @@
from zope.app.component.site import LocalSiteManager, SiteManagerAdapter
from zope.app.intid import IntIds
from zope.app.intid.interfaces import IIntIds
-import zope.app.component.interfaces.registration
+import zope.app.component.hooks
from zc.relationship import intid, keyref, shared
More information about the Checkins
mailing list