Commit 0fd9f6c7 authored by Gerion Entrup's avatar Gerion Entrup
Browse files

utils: add p_print for debugging purpose

parent 6895794d
import os.path
import settings
import pprint
from code import InteractiveConsole
from inspect import currentframe
......@@ -32,3 +33,8 @@ def debug_breakpoint():
caller.f_code.co_filename, caller.f_lineno
)
)
def p_print(obj):
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(obj)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment