diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-09-18 23:57:11 +0000 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-09-18 23:57:11 +0000 |
commit | 9cca374b0bb83426f85768b5545c84ae8b57ddb3 (patch) | |
tree | acce97690e33cd69652e86e6c2035f80669201a0 | |
parent | 4ba8798e527ba7943e031ce574d3e0e53acd0500 (diff) | |
download | pylint-9cca374b0bb83426f85768b5545c84ae8b57ddb3.tar.gz |
Get the sections sorted in options_by_section. This means the generated rcfile always has a consistent order. Closes issue #602.
-rw-r--r-- | pylint/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/config.py b/pylint/config.py index a18e609..c9ab351 100644 --- a/pylint/config.py +++ b/pylint/config.py @@ -756,7 +756,7 @@ class OptionsProviderMixIn(object): (optname, optdict, self.option_value(optname))) if None in sections: yield None, sections.pop(None) - for section, options in sections.items(): + for section, options in sorted(sections.items()): yield section.upper(), options def options_and_values(self, options=None): |