[Zope3-checkins] CVS: Zope3/src/zodb/code - class_.py:1.15 module.py:1.10 patch.py:1.9

Martijn Faassen m.faassen@vet.uu.nl
Thu, 1 May 2003 15:36:00 -0400


Update of /cvs-repository/Zope3/src/zodb/code
In directory cvs.zope.org:/tmp/cvs-serv30407/zodb/code

Modified Files:
	class_.py module.py patch.py 
Log Message:
Importgeddon part the second. Removed unused imports throughout the
source tree. This should have taken care of most unused imports
in Zope 3. :)


=== Zope3/src/zodb/code/class_.py 1.14 => 1.15 ===
--- Zope3/src/zodb/code/class_.py:1.14	Wed Apr 16 18:07:48 2003
+++ Zope3/src/zodb/code/class_.py	Thu May  1 15:34:59 2003
@@ -15,14 +15,12 @@
 
 __metaclass__ = type
 
-from persistence import Persistent, PersistentMetaClass
-from persistence._persistence import UPTODATE, CHANGED, STICKY, GHOST
+from persistence import PersistentMetaClass
+from persistence._persistence import UPTODATE, CHANGED, GHOST
 from persistence.interfaces import IPersistent
 from zodb.code.function import PersistentFunction
 
-import new
 import time
-from types import FunctionType as function
 
 # XXX There is a lot of magic here to give classes and instances
 # separate sets of attributes.  This code should be documented, as it


=== Zope3/src/zodb/code/module.py 1.9 => 1.10 ===
--- Zope3/src/zodb/code/module.py:1.9	Thu Mar  6 15:47:26 2003
+++ Zope3/src/zodb/code/module.py	Thu May  1 15:34:59 2003
@@ -15,20 +15,12 @@
 
 __metaclass__ = type
 
-# in 2.3, this will be spelled new.function
-from types import FunctionType as function
-import sys
-
 from persistence import Persistent
 from persistence._persistence import GHOST
-from zodb.code.class_ import PersistentClassMetaClass
-from zodb.code.function import PersistentFunction
 from zodb.code.interfaces import IPersistentModuleManager
 from zodb.code.interfaces \
      import IPersistentModuleImportRegistry, IPersistentModuleUpdateRegistry
 from zodb.code.patch import NameFinder, convert
-
-from transaction import get_transaction
 
 # builtins are explicitly assigned when a module is unpickled
 import __builtin__


=== Zope3/src/zodb/code/patch.py 1.8 => 1.9 ===
--- Zope3/src/zodb/code/patch.py:1.8	Thu Feb  6 12:41:19 2003
+++ Zope3/src/zodb/code/patch.py	Thu May  1 15:34:59 2003
@@ -93,7 +93,6 @@
 
 from zodb.code.class_ import PersistentClassMetaClass, PersistentDescriptor
 from zodb.code.function import PersistentFunction
-from persistence import Persistent
 
 class Wrapper:
     """Implement pickling reduce protocol for update-able object.