[Zope-Checkins] CVS: Zope3/lib/python/Persistence - Module.py:1.6

Jeremy Hylton jeremy@zope.com
Wed, 26 Jun 2002 23:44:40 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv2608

Modified Files:
	Module.py 
Log Message:
Fix persistent modules for Python 2.2.

new.function won't become FunctionType until 2.3.


=== Zope3/lib/python/Persistence/Module.py 1.5 => 1.6 ===
 
 import ihooks
-from new import function
+# in 2.3, this will be spelled new.function
+from types import FunctionType as function
 import sys
 
 from Persistence import Persistent