[Zope-Checkins] SVN: Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py You almost never need type()
Hanno Schlichting
hannosch at hannosch.eu
Sat Jul 24 11:54:31 EDT 2010
Log message for revision 115022:
You almost never need type()
Changed:
U Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py
-=-
Modified: Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py
===================================================================
--- Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py 2010-07-24 15:51:55 UTC (rev 115021)
+++ Zope/branches/andig-catalog-report/src/Products/ZCatalog/CatalogReport.py 2010-07-24 15:54:30 UTC (rev 115022)
@@ -63,7 +63,7 @@
for name in values:
v = keydict.get(name, [])
- if type(v) in [type(tuple()), type(list())]:
+ if isinstance(v, (tuple, list)):
v = list(v)
v.sort()
More information about the Zope-Checkins
mailing list