sort weights before writing

Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/e76fce6e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/e76fce6e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/e76fce6e

Branch: refs/heads/7_confsystem
Commit: e76fce6ef7e893b7867203389a1e3b5f01b4668a
Parents: 008f2f4
Author: Matt Post <p...@cs.jhu.edu>
Authored: Sat Sep 17 17:03:37 2016 +0200
Committer: Matt Post <p...@cs.jhu.edu>
Committed: Sat Sep 17 17:03:37 2016 +0200

----------------------------------------------------------------------
 scripts/compat/sevenize_my_conf_plz.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/e76fce6e/scripts/compat/sevenize_my_conf_plz.py
----------------------------------------------------------------------
diff --git a/scripts/compat/sevenize_my_conf_plz.py 
b/scripts/compat/sevenize_my_conf_plz.py
index abff53c..012456f 100755
--- a/scripts/compat/sevenize_my_conf_plz.py
+++ b/scripts/compat/sevenize_my_conf_plz.py
@@ -98,7 +98,7 @@ print ']'
 
 print
 print 'weights = {'
-for weight in weights.keys():
+for weight in sorted(weights.keys()):
     print ' ', weight, '=', weights[weight]
 print '}'
 

Reply via email to