Permalink
Browse files

Save config file in alphabetical order

This makes it a lot easier to track such files in git.
  • Loading branch information...
1 parent 3990880 commit f735c07e9b4e5cc1b75767a8f1aca5e7c95c38b2 @asmeurer asmeurer committed Aug 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pudb/settings.py
View
4 pudb/settings.py
@@ -96,8 +96,8 @@ def save_config(conf_dict):
cparser = ConfigParser()
cparser.add_section(CONF_SECTION)
- for key, val in conf_dict.items():
- cparser.set(CONF_SECTION, key, str(val))
+ for key in sorted(conf_dict):
+ cparser.set(CONF_SECTION, key, str(conf_dict[key]))
try:
outf = open(join(get_save_config_path(),

0 comments on commit f735c07

Please sign in to comment.