def __getattr__(self, attr):
        key = str(attr).lower()
        if key[0] != '_':
            raise AttributeError, attr
        key = key[1:]
        if key in self:
            return self[key]
        elif key in self.__fields:
            return self[self.__fields[key]]
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/common/perforce/p426/win64/P4.py/Spec.__getattr__/original