comparison configmix/config.py @ 29:17af7a78710c

FIX: Renaming a class was not really complete
author Franz Glasner <hg@dom66.de>
date Fri, 18 Mar 2016 09:13:06 +0100
parents baf862cb4860
children b04a350f894b
comparison
equal deleted inserted replaced
28:7c7955da42ab 29:17af7a78710c
32 except KeyError: 32 except KeyError:
33 raise AttributeError("%s has no attribute %r" % (type(self), name)) 33 raise AttributeError("%s has no attribute %r" % (type(self), name))
34 else: 34 else:
35 # Wrap a dict into another dict with attribute access support 35 # Wrap a dict into another dict with attribute access support
36 if isinstance(v, dict): 36 if isinstance(v, dict):
37 return AttributeDict(v) 37 return _AttributeDict(v)
38 else: 38 else:
39 return v 39 return v
40 40
41 41
42 class Configuration(_AttributeDict): 42 class Configuration(_AttributeDict):