Skip to content
This repository

Save config file in alphabetical order #44

Merged
merged 1 commit into from over 1 year ago

2 participants

Aaron Meurer Andreas Klöckner
Aaron Meurer
Collaborator

This makes it a lot easier to track such files in git.

Aaron Meurer Save config file in alphabetical order
This makes it a lot easier to track such files in git.
f735c07
Andreas Klöckner inducer merged commit 488689e into from
Andreas Klöckner inducer closed this
Andreas Klöckner
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Aug 07, 2012
Aaron Meurer Save config file in alphabetical order
This makes it a lot easier to track such files in git.
f735c07
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  pudb/settings.py
4  pudb/settings.py
@@ -96,8 +96,8 @@ def save_config(conf_dict):
96 96
     cparser = ConfigParser()
97 97
     cparser.add_section(CONF_SECTION)
98 98
 
99  
-    for key, val in conf_dict.items():
100  
-        cparser.set(CONF_SECTION, key, str(val))
  99
+    for key in sorted(conf_dict):
  100
+        cparser.set(CONF_SECTION, key, str(conf_dict[key]))
101 101
 
102 102
     try:
103 103
         outf = open(join(get_save_config_path(),
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.