diff piecrust/plugins/base.py @ 7:343d08ef5668

More PieCrust 3 fixes, and a couple of miscellaneous bug fixes.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 16 Aug 2014 15:07:22 -0700
parents f485ba500df3
children 5dbab01daaba
line wrap: on
line diff
--- a/piecrust/plugins/base.py	Sat Aug 16 08:15:30 2014 -0700
+++ b/piecrust/plugins/base.py	Sat Aug 16 15:07:22 2014 -0700
@@ -105,7 +105,7 @@
     def _loadPlugin(self, plugin_dir):
         pass
 
-    def _getPluginComponents(self, name, initialize=False, order_cmp=None, order_key=None):
+    def _getPluginComponents(self, name, initialize=False, order_key=None):
         if name in self._componentCache:
             return self._componentCache[name]
 
@@ -117,8 +117,8 @@
                 for comp in plugin_components:
                     comp.initialize(self.app)
 
-        if order_cmp is not None or order_key is not None:
-            all_components.sort(cmp=order_cmp, key=order_key)
+        if order_key is not None:
+            all_components.sort(key=order_key)
 
         self._componentCache[name] = all_components
         return all_components