diff options
author | Mark Shoulson <mark@kli.org> | 2011-12-09 11:20:10 -0500 |
---|---|---|
committer | Mark Shoulson <mark@kli.org> | 2011-12-09 11:20:10 -0500 |
commit | ce7dfa56158f0065e8323d8ce3a2ea29c150a9c2 (patch) | |
tree | ab730c6b8e3de6d90788dcc970c9ff7dac945dac /treeprint.py | |
parent | Merge branch 'master' of github.com:kragen/xcompose (diff) | |
download | dotXCompose-ce7dfa56158f0065e8323d8ce3a2ea29c150a9c2.tar.gz dotXCompose-ce7dfa56158f0065e8323d8ce3a2ea29c150a9c2.tar.bz2 dotXCompose-ce7dfa56158f0065e8323d8ce3a2ea29c150a9c2.zip |
We lasted this long without NOT SIGN?
Removed redundant def
Added frakturcompose
Improvements to treeprint.py (print close parens!!)
Diffstat (limited to 'treeprint.py')
-rw-r--r-- | treeprint.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/treeprint.py b/treeprint.py index ce4f672..281b406 100644 --- a/treeprint.py +++ b/treeprint.py @@ -21,14 +21,19 @@ etc: this is a case of GIGO. Deal with it. """ def showdict(data, indent): + first=True for (key, value) in data.iteritems(): + if first: + first=False + else: + print print " "*indent + "("+key, if type(value)==dict: print "" - showdict(value, indent+4) + showdict(value, indent+4), else: - print " "+value+")" - + print " "+value, + print ")", listing={} |