[Checkins] SVN: Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py one less 'else'

Hano Schlichting cvs-admin at zope.org
Sat Apr 7 10:51:27 UTC 2012


Log message for revision 125055:
  one less 'else'
  

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-06 23:00:52 UTC (rev 125054)
+++ Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py	2012-04-07 10:51:24 UTC (rev 125055)
@@ -904,8 +904,7 @@
                 raise CatalogError('Two sort indexes are supported at max, '
                     'got: %s' %repr(name))
             return sort_indexes
-        else:
-            return None
+        return None
 
     def searchResults(self, REQUEST=None, used=None, _merge=1, **kw):
         # You should pass in a simple dictionary as the request argument,



More information about the checkins mailing list