diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2019-07-04 10:51:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-04 10:51:22 -0400 |
| commit | 32548e8e51d13d511813ba4e2a4571bd73e440e5 (patch) | |
| tree | a5c1d8e8932048f6f4c02d55e144023fa82b2e8f /lib/utils/dotdict.py | |
| parent | 4db305a36dd87dc9fc21034571eaebb078054bd3 (diff) | |
| parent | c51ae9ccb7052e4015b4a3dd3e2817d8625e3ab0 (diff) | |
lettering features (#399)
lettering features
Diffstat (limited to 'lib/utils/dotdict.py')
| -rw-r--r-- | lib/utils/dotdict.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/utils/dotdict.py b/lib/utils/dotdict.py index 1ab3a4fe..76f23697 100644 --- a/lib/utils/dotdict.py +++ b/lib/utils/dotdict.py @@ -6,7 +6,13 @@ class DotDict(dict): def __init__(self, *args, **kwargs): super(DotDict, self).__init__(*args, **kwargs) + self._dotdictify() + def update(self, *args, **kwargs): + super(DotDict, self).update(*args, **kwargs) + self.dotdictify() + + def _dotdictify(self): for k, v in self.iteritems(): if isinstance(v, dict): self[k] = DotDict(v) |
