From: Naoki Kambe Date: Thu, 1 Nov 2012 07:53:11 +0000 (+0900) Subject: [2298_1] use sorted() instead of using sort() redundantly X-Git-Tag: trac2487_base~1^2~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27cb11af84c3ddcd59280039792c8a6122302e6c;p=thirdparty%2Fkea.git [2298_1] use sorted() instead of using sort() redundantly --- diff --git a/src/bin/stats/stats_httpd.py.in b/src/bin/stats/stats_httpd.py.in index 21061db681..13cd16755f 100644 --- a/src/bin/stats/stats_httpd.py.in +++ b/src/bin/stats/stats_httpd.py.in @@ -112,9 +112,7 @@ def item_name_list(element, identifier): if type(elem) is dict: if ident: ident = ident + '/' - keys = list(elem.keys()) - keys.sort() - for key in keys: + for key in sorted(elem.keys()): idstr = '%s%s' % (ident, key) ret += item_name_list(element, idstr) elif type(elem) is list: