diff mercurial/hgweb/hgwebdir_mod.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 35604226d712
children 227707c90548
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Apr 26 16:50:44 2009 -0500
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun Apr 26 16:50:44 2009 -0500
@@ -38,7 +38,7 @@
             self.repos = cleannames(conf)
             self.repos_sorted = ('', False)
         elif isinstance(conf, dict):
-            self.repos = util.sort(cleannames(conf.items()))
+            self.repos = sorted(cleannames(conf.items()))
         else:
             if isinstance(conf, config.config):
                 cp = conf