From 4897a3ac2ed3b5fc0c7547dd2419261e06e2d956 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 28 Feb 2018 08:58:58 -0800 Subject: docs: sort modes in generate_commands otherwise the output is non-deterministic and the order will change with different versions of python. --- docs/source/generate_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/source/generate_commands.py b/docs/source/generate_commands.py index c3db693f..b7ce501b 100755 --- a/docs/source/generate_commands.py +++ b/docs/source/generate_commands.py @@ -100,7 +100,7 @@ def get_mode_docs(): if __name__ == "__main__": modes = [] - for mode, modecommands in COMMANDS.items(): + for mode, modecommands in sorted(COMMANDS.items()): modefilename = mode+'.rst' modefile = open(os.path.join(HERE, 'usage', 'modes', modefilename), 'w') -- cgit v1.2.3