[Checkins] SVN: Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py Keep __getitem__ access instead of .get on documentToKeyMap results
Hano Schlichting
cvs-admin at zope.org
Sat Apr 7 19:55:58 UTC 2012
Log message for revision 125089:
Keep __getitem__ access instead of .get on documentToKeyMap results
Changed:
U Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py
-=-
Modified: Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py
===================================================================
--- Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py 2012-04-07 18:47:55 UTC (rev 125088)
+++ Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py 2012-04-07 19:55:52 UTC (rev 125089)
@@ -797,7 +797,7 @@
for did in rs:
try:
key = index_key_map[did]
- key2 = index2_key_map.get(did)
+ key2 = index2_key_map[did]
except KeyError:
# This document is not in the sort key index, skip it.
pass
@@ -846,7 +846,7 @@
for did in rs:
try:
key = index_key_map[did]
- key2 = index2_key_map.get(did)
+ key2 = index2_key_map[did]
except KeyError:
# This document is not in the sort key index, skip it.
pass
@@ -898,7 +898,7 @@
for did in rs:
try:
key = index_key_map[did]
- key2 = index2_key_map.get(did)
+ key2 = index2_key_map[did]
except KeyError:
# This document is not in the sort key index, skip it.
pass
More information about the checkins
mailing list