diff mercurial/filemerge.py @ 8209:a1a5a57efe90

replace util.sort with sorted built-in This is marginally faster for small and moderately-sized lists
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Apr 2009 16:50:44 -0500
parents 4a4c7f6a5912
children 46293a0c7e9f
line wrap: on
line diff
--- a/mercurial/filemerge.py	Sun Apr 26 16:50:44 2009 -0500
+++ b/mercurial/filemerge.py	Sun Apr 26 16:50:44 2009 -0500
@@ -66,7 +66,7 @@
         if t not in tools:
             tools[t] = int(_toolstr(ui, t, "priority", "0"))
     names = tools.keys()
-    tools = util.sort([(-p,t) for t,p in tools.items()])
+    tools = sorted([(-p,t) for t,p in tools.items()])
     uimerge = ui.config("ui", "merge")
     if uimerge:
         if uimerge not in names: