diff hgext/keyword.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 6ee71f78497c
children 46293a0c7e9f
line wrap: on
line diff
--- a/hgext/keyword.py	Sun Apr 26 16:50:44 2009 -0500
+++ b/hgext/keyword.py	Sun Apr 26 16:50:44 2009 -0500
@@ -377,7 +377,7 @@
     kwt = kwtools['templater']
     status = _status(ui, repo, kwt, opts.get('untracked'), *pats, **opts)
     modified, added, removed, deleted, unknown, ignored, clean = status
-    files = util.sort(modified + added + clean + unknown)
+    files = sorted(modified + added + clean + unknown)
     wctx = repo[None]
     kwfiles = [f for f in files if kwt.iskwfile(f, wctx.flags)]
     cwd = pats and repo.getcwd() or ''