[Zope3-checkins] CVS: Zope3/src/zope/app/index - processors.py:1.12

Jeremy Hylton cvs-admin at zope.org
Tue Nov 4 22:08:52 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/index
In directory cvs.zope.org:/tmp/cvs-serv25892/app/index

Modified Files:
	processors.py 
Log Message:
Remove code that isn't needed now that we require Python 2.3.

Cases include future statements for generators, special case
definitions of builtins like basestring and enumerate, a few uses of
types that are unnecessary.


=== Zope3/src/zope/app/index/processors.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/index/processors.py:1.11	Sun Sep 21 13:31:54 2003
+++ Zope3/src/zope/app/index/processors.py	Tue Nov  4 22:08:19 2003
@@ -15,9 +15,6 @@
 
 $Id$
 """
-
-from __future__ import generators
-
 from zope.app.interfaces.index.interfaces import \
     IRankedObjectIterator, IRankedObjectRecord, \
     IRankedHubIdList, IBatchedResult
@@ -76,7 +73,7 @@
             yield RankedObjectRecord(objectfetcher(hubid), rank)
         raise StopIteration
 
-class RankedObjectRecord:
+class RankedObjectRecord(object):
     """Contains a reference to a ranked object."""
 
     __slots__ = ["rank", "object"]




More information about the Zope3-Checkins mailing list