This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
class DotDict(dict): | |
def __init__(self, *a, **kw): | |
dict.__init__(self, *a, **kw) | |
for key in self: | |
self._validate_key(key) | |
def _validate_key(self, key): |