MCPcopy
hub / github.com/django/django / pprint

Function pprint

django/template/defaultfilters.py:992–997  ·  view source on GitHub ↗

A wrapper around pprint.pprint -- for debugging, really.

(value)

Source from the content-addressed store, hash-verified

990
991@register.filter(is_safe=True)
992def pprint(value):
993 """A wrapper around pprint.pprint -- for debugging, really."""
994 try:
995 return pformat(value)
996 except Exception as e:
997 return "Error in formatting: %s: %s" % (e.__class__.__name__, e)

Callers 1

get_traceback_dataMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected