@classmethod
    def __getattr__(cls, name):
        if name in ('__file__', '__path__'):
            return '/dev/null'
        elif name[0] == name[0].upper():
            MockType = type(name, (), {})
            MockType.__module__ = __name__
            return MockType
        else:
            return ModuleMock()
dataset/ETHPy150Open idlesign/django-sitemessage/docs/source/conf.py/ModuleMock.__getattr__/original