def __init__(self, file=None):
        try:
            # Python 3
            import reprlib
        except __HOLE__:
            # Python 2
            import repr as reprlib

        if file is not None:
            self.stream = file
        else:
            self.stream = sys.stdout
        self.cumulative = False
        self._getter = _GetUncollectable()
        self._objects = []
        self.color = self.stream.isatty()
        reprobj = reprlib.Repr()
        reprobj.maxstring = 100
        reprobj.maxother = 100
        reprobj.maxlevel = 1
        self.format_object = reprobj.repr
dataset/ETHPy150Open wyplay/pytracemalloc/tracemalloc.py/DisplayGarbage.__init__