comparison martini/config.py @ 7:7c8f23eae311

discriminate on case
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 24 Nov 2010 10:55:59 -0800
parents 09bed87f7fa4
children 81aed4352851
comparison
equal deleted inserted replaced
6:09bed87f7fa4 7:7c8f23eae311
28 class ConfigMunger(ConfigParser): 28 class ConfigMunger(ConfigParser):
29 """combine configuration from .ini files""" 29 """combine configuration from .ini files"""
30 30
31 def __init__(self, *conf, **kw): 31 def __init__(self, *conf, **kw):
32 ConfigParser.__init__(self, kw.get('defaults',{})) 32 ConfigParser.__init__(self, kw.get('defaults',{}))
33 self.optionxform = str
33 self.read(*conf) 34 self.read(*conf)
34 35
35 def __getitem__(self, section): 36 def __getitem__(self, section):
36 """ 37 """
37 return an object with __getitem__ defined appropriately 38 return an object with __getitem__ defined appropriately