summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbbangert <none@none>2006-02-20 15:13:00 -0800
committerbbangert <none@none>2006-02-20 15:13:00 -0800
commitb23e47aaed5f75703e808d07d3739bf1e3b10afc (patch)
tree05939d0ff1fe82910b71fe95e55a1b0c02a80330
parentee5af6c3be58ce1cd23b30ac774f3be2edd50ae8 (diff)
downloadroutes-b23e47aaed5f75703e808d07d3739bf1e3b10afc.tar.gz
[svn] Sort fix for Python 2.3
--HG-- branch : trunk
-rw-r--r--routes/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/util.py b/routes/util.py
index a40411b..6f81ec2 100644
--- a/routes/util.py
+++ b/routes/util.py
@@ -185,7 +185,7 @@ def controller_scan(directory):
def longest_first(a, b):
return cmp(len(b), len(a))
controllers = find_controllers(directory)
- controllers.sort(cmp=longest_first)
+ controllers.sort(longest_first)
return controllers
class RouteException(Exception):