[pypy-commit] pypy remove-PYPY_NOT_MAIN_FILE: Sort generated file names, this may look better in translation output.

amauryfa noreply at buildbot.pypy.org
Thu Sep 6 21:37:26 CEST 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: remove-PYPY_NOT_MAIN_FILE
Changeset: r57191:ba80e1981df3
Date: 2012-09-06 21:37 +0200
http://bitbucket.org/pypy/pypy/changeset/ba80e1981df3/

Log:	Sort generated file names, this may look better in translation
	output.

diff --git a/pypy/translator/c/genc.py b/pypy/translator/c/genc.py
--- a/pypy/translator/c/genc.py
+++ b/pypy/translator/c/genc.py
@@ -733,7 +733,7 @@
 
         # produce a sequence of nodes, grouped into files
         # which have no more than SPLIT_CRITERIA lines
-        for basecname in nodes_by_base_cfile:
+        for basecname in sorted(nodes_by_base_cfile):
             iternodes = iter(nodes_by_base_cfile[basecname])
             done = [False]
             def subiter():


More information about the pypy-commit mailing list