python pprint nested dictionary newline each nesting?

Viewed 1089

I have the following datastucture:

{'row_errors': {'hello.com': {'template': [u'This field is required.']}}}

When I use pprint in python, I am getting

{'row_errors': {'hello.com': {'template': [u'This field is required.']}}}

However, I would very much like it to be printed like:

{'row_errors': 
    {'hello.com': 
        {'template': [u'This field is required.']}}}

Is this possible to configure via pprint? (I prefer pprint because I am printing this inside a jinja template).

1 Answers
Related