changeset 10:66d11212175d

this should be ordered too
author Jeff Hammel <k0scist@gmail.com>
date Tue, 23 Aug 2016 09:26:27 -0700
parents 77c7556fa8e0
children c77259f467a3
files martini/config.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/martini/config.py	Tue Aug 23 09:11:49 2016 -0700
+++ b/martini/config.py	Tue Aug 23 09:26:27 2016 -0700
@@ -33,19 +33,19 @@
 
 class ConfigMunger(ConfigParser):
     """combine configuration from .ini files"""
-    
+
     def __init__(self, *conf, **kw):
         ConfigParser.__init__(self, defaults=kw.get('defaults',{}),
                               dict_type=OrderedDict)
         self.optionxform = str
         self.read(*conf)
-    
+
     def __getitem__(self, section):
         """
         return an object with __getitem__ defined appropriately
         to allow referencing like self['foo']['bar']
         """
-        return dict(self.items(section))
+        return OrderedDict(self.items(section))
 
     def get(self, section, option, default=None, raw=False, vars=None):
         try: