def format(self, object, context, maxlevels, level):
        if isinstance(object, str):
            if ' ' in object:
                return repr(object), 1, 0
            else:
                return object, 0, 0
        else:
            return pprint.PrettyPrinter.format(
                self, object, context, maxlevels, level)
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_pprint.py/DottedPrettyPrinter.format/original