-
Committer:
Christian Boltz
-
Date:
2014-11-15 00:08:37 UTC
-
Revision ID:
apparmor@cboltz.de-20141115000837-4rsvi4ns278e4kzl
fix and improve recursive_print()
This patch for recursive_print() in common.py fixes printing dicts with
py3. It also replaced the tabs() lambda function with a plain string,
and the brace() lambda function with a simple formatstring to make the
code easier to understand.
Also add support for nested lists - for the start and end of each list,
print a [ and ]. Without that, you get a long list of items without an
indicator if/when a new parent list starts.
Acked-by: Steve Beattie <steve@nxnw.org>