[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/common - UnIndex.py:1.14.6.2

Fred Drake cvs-admin at zope.org
Wed Nov 19 07:23:55 EST 2003


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/common
In directory cvs.zope.org:/tmp/cvs-serv4329/Products/PluginIndexes/common

Modified Files:
      Tag: Zope-2_6-branch
	UnIndex.py 
Log Message:
Avoid nuissance SyntaxWarnings from the nightly test runs.


=== Zope/lib/python/Products/PluginIndexes/common/UnIndex.py 1.14.6.1 => 1.14.6.2 ===
--- Zope/lib/python/Products/PluginIndexes/common/UnIndex.py:1.14.6.1	Tue Jun 17 14:14:28 2003
+++ Zope/lib/python/Products/PluginIndexes/common/UnIndex.py	Wed Nov 19 07:23:25 2003
@@ -281,7 +281,7 @@
             LOG('UnIndex', ERROR, 'Attempt to unindex nonexistent document'
                 ' with id %s' % documentId)
 
-    def _apply_index(self, request, cid='', type=type, None=None):
+    def _apply_index(self, request, cid='', type=type):
         """Apply the index to query parameters given in the request arg.
 
         The request argument should be a mapping object.
@@ -324,7 +324,7 @@
 
 
         record = parseIndexRequest(request, self.id, self.query_options)
-        if record.keys==None: return None
+        if record.keys is None: return None
 
         index = self._index
         r     = None




More information about the Zope-Checkins mailing list