Mercurial > hg
diff hgext/inotify/server.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 | 67e59a9886d5 |
children | 46293a0c7e9f |
line wrap: on
line diff
--- a/hgext/inotify/server.py Sun Apr 26 16:50:44 2009 -0500 +++ b/hgext/inotify/server.py Sun Apr 26 16:50:44 2009 -0500 @@ -539,7 +539,7 @@ self.ui.note(_('%s processing %d deferred events as %d\n') % (self.event_time(), self.deferred, len(self.eventq))) - for wpath, evts in util.sort(self.eventq.items()): + for wpath, evts in sorted(self.eventq.iteritems()): for evt in evts: self.deferred_event(wpath, evt) self.eventq.clear()