BIND 10 trac2298_1, updated. 27cb11af84c3ddcd59280039792c8a6122302e6c [2298_1] use sorted() instead of using sort() redundantly

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Nov 1 08:45:03 UTC 2012


The branch, trac2298_1 has been updated
       via  27cb11af84c3ddcd59280039792c8a6122302e6c (commit)
      from  3024c2d31d248dea7c2d724dffb88e24c6089e08 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 27cb11af84c3ddcd59280039792c8a6122302e6c
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Thu Nov 1 16:53:11 2012 +0900

    [2298_1] use sorted() instead of using sort() redundantly

-----------------------------------------------------------------------

Summary of changes:
 src/bin/stats/stats_httpd.py.in |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/stats/stats_httpd.py.in b/src/bin/stats/stats_httpd.py.in
index 21061db..13cd167 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:



More information about the bind10-changes mailing list