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()
 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to