From 9c588eca01b63e54b9b75c96d7d0d50d8f79022a Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 7 Jul 2011 15:17:15 -0400 Subject: [PATCH] sort configuration variables before writing --- pygtk-imap-chk.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pygtk-imap-chk.py b/pygtk-imap-chk.py index 5c94cf0..a7e7516 100755 --- a/pygtk-imap-chk.py +++ b/pygtk-imap-chk.py @@ -28,6 +28,7 @@ def save_config(fname, conf): old_config = '' new_config = '' conf_ents = filter(lambda x: not x.startswith('_'), conf) + conf_ents.sort() for s in map(lambda x: x + ' = ' + repr(conf[x]) + '\n', conf_ents): new_config += s if old_config != new_config: