def pformat(self, object): sio = orig_pprint._StringIO() self._format(object, sio, self._indent, self._depth, {}, 0) return sio.getvalue()
def pformat_sub(self, object, indent=0, level=0): sio = _StringIO() self._format(object, sio, indent, 0, {}, level) return sio.getvalue()