[Zope3-checkins] CVS: Zope3/src/zope/app/catalog - catalog.py:1.12
Jeremy Hylton
cvs-admin at zope.org
Mon Nov 3 16:38:30 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/catalog
In directory cvs.zope.org:/tmp/cvs-serv3612/app/catalog
Modified Files:
catalog.py
Log Message:
Remove unused local variables.
=== Zope3/src/zope/app/catalog/catalog.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/catalog/catalog.py:1.11 Sun Sep 21 13:31:19 2003
+++ Zope3/src/zope/app/catalog/catalog.py Mon Nov 3 16:38:00 2003
@@ -1,5 +1,3 @@
-from __future__ import generators
-
from persistence import Persistent
from persistence.dict import PersistentDict
from zope.interface import implements
@@ -99,15 +97,10 @@
"objecthub is my friend!"
indexes = self.values()
- if (IHub.IObjectRegisteredHubEvent.isImplementedBy(event) or
- IHub.IObjectModifiedHubEvent.isImplementedBy(event)):
- addobj = event.object
- elif IHub.IObjectUnregisteredHubEvent.isImplementedBy(event):
- delobj = event.object
for index in indexes:
try:
index.notify(event)
- except:
+ except: # XXX bare excepts are not my friend! Please fix.
pass
def searchResults(self, **searchterms):
More information about the Zope3-Checkins
mailing list