[Checkins] SVN: Products.ZCTextIndex/trunk/src/Products/ZCTextIndex/ZCTextIndex.py cleanup style, avoid bare-except
Hano Schlichting
cvs-admin at zope.org
Mon Dec 3 09:50:02 UTC 2012
Log message for revision 128480:
cleanup style, avoid bare-except
Changed:
U Products.ZCTextIndex/trunk/src/Products/ZCTextIndex/ZCTextIndex.py
-=-
Modified: Products.ZCTextIndex/trunk/src/Products/ZCTextIndex/ZCTextIndex.py
===================================================================
--- Products.ZCTextIndex/trunk/src/Products/ZCTextIndex/ZCTextIndex.py 2012-12-02 17:55:24 UTC (rev 128479)
+++ Products.ZCTextIndex/trunk/src/Products/ZCTextIndex/ZCTextIndex.py 2012-12-03 09:50:00 UTC (rev 128480)
@@ -170,11 +170,10 @@
each of which should yield either a string or a list of
strings (Unicode or otherwise) to be passed to index_doc().
"""
- # XXX We currently ignore subtransaction threshold
+ # TODO we currently ignore subtransaction threshold
# needed for backward compatibility
- try: fields = self._indexed_attrs
- except: fields = [ self._fieldname ]
+ fields = getattr(self, '_indexed_attrs', [self._fieldname])
res = 0
all_texts = []
More information about the checkins
mailing list