changeset 3060:50e0392d51df

Fix for Python 2.3 compatibility. Note: Name of comparing function of sort() is "cmpfunc" in Python 2.3 and "cmp" in Python 2.4.
author Shun-ichi GOTO <shunichi.goto@gmail.com>
date Tue, 05 Sep 2006 12:40:45 +0900
parents 51083c31db04
children 713de12d9ce5
files contrib/churn.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/churn.py	Mon Sep 04 16:02:25 2006 -0400
+++ b/contrib/churn.py	Tue Sep 05 12:40:45 2006 +0900
@@ -156,7 +156,7 @@
 
     # make a list of tuples (name, lines) and sort it in descending order
     ordered = stats.items()
-    ordered.sort(cmp=lambda x, y: cmp(y[1], x[1]))
+    ordered.sort(lambda x, y: cmp(y[1], x[1]))
 
     maximum = ordered[0][1]