[Zope3-checkins] CVS: Zope3/src/zope/interface - _flatten.py:1.6 implements.py:1.6 interface.py:1.10 type.py:1.9

Jim Fulton jim@zope.com
Tue, 3 Jun 2003 18:46:56 -0400


Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv6144/src/zope/interface

Modified Files:
	_flatten.py implements.py interface.py type.py 
Log Message:
After cleaning up placefull test setup (see earlier checkins)
cleaned up unneeded imports in test modules (and some other modules)
based on the results of running Martijn Faassen's importchecker tool.


=== Zope3/src/zope/interface/_flatten.py 1.5 => 1.6 ===
--- Zope3/src/zope/interface/_flatten.py:1.5	Sat May  3 12:35:29 2003
+++ Zope3/src/zope/interface/_flatten.py	Tue Jun  3 18:46:25 2003
@@ -19,7 +19,7 @@
 """
 __metaclass__ = type # All classes are new style when run with Python 2.2+
 
-from zope.interface import Interface, InterfaceSpecification
+from zope.interface import InterfaceSpecification
 
 def _flatten(implements, include_None=0):
 


=== Zope3/src/zope/interface/implements.py 1.5 => 1.6 ===
--- Zope3/src/zope/interface/implements.py:1.5	Sat May  3 12:36:05 2003
+++ Zope3/src/zope/interface/implements.py	Tue Jun  3 18:46:25 2003
@@ -20,12 +20,8 @@
 from zope.interface.declarations import providedBy, implementedBy
 from zope.interface.declarations import classImplements
 from zope.interface.declarations import InterfaceSpecification
-
-
-from zope.interface import exceptions
 from zope.interface.verify import verifyClass
 from zope.interface.interface import InterfaceClass
-from types import TupleType, ClassType, StringType
 
 getImplements = providedBy
 getImplementsOfInstances = implementedBy


=== Zope3/src/zope/interface/interface.py 1.9 => 1.10 ===
--- Zope3/src/zope/interface/interface.py:1.9	Sat May  3 12:36:05 2003
+++ Zope3/src/zope/interface/interface.py	Tue Jun  3 18:46:25 2003
@@ -18,7 +18,6 @@
 """
 
 import sys
-from inspect import currentframe
 from types import FunctionType
 
 CO_VARARGS = 4


=== Zope3/src/zope/interface/type.py 1.8 => 1.9 ===
--- Zope3/src/zope/interface/type.py:1.8	Sat May  3 12:36:05 2003
+++ Zope3/src/zope/interface/type.py	Tue Jun  3 18:46:25 2003
@@ -19,7 +19,7 @@
 """
 __metaclass__ = type # All classes are new style when run with Python 2.2+
 
-from zope.interface import Interface, providedBy
+from zope.interface import providedBy
 from zope.interface.interfaces import IInterface
 from zope.interface.interfaces import ITypeRegistry