Debian Codegraph @

Lib/test/test_import/data/unwritable/__init__.py

raw
1 import sys
2
3 class MyMod(object):
4 __slots__ = ['__builtins__', '__cached__', '__doc__',
5 '__file__', '__loader__', '__name__',
6 '__package__', '__path__', '__spec__']
7 def __init__(self):
8 for attr in self.__slots__:
9 setattr(self, attr, globals()[attr])
10
11
12 sys.modules[__name__] = MyMod()