summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-02-08 15:33:35 +0100
committerJan Pokorný <jpokorny@redhat.com>2013-02-08 15:33:35 +0100
commitb34d40d45a95afc22dc2884f05b86d1d20052b03 (patch)
tree89c639cb17e7e40597052cdfaca1ca2d899624f2
parent7f33103ce5bc8f92c0748407c784ece6daf5d97b (diff)
downloadrnc2rng-b34d40d45a95afc22dc2884f05b86d1d20052b03.tar.gz
rnc2rng-b34d40d45a95afc22dc2884f05b86d1d20052b03.tar.xz
rnc2rng-b34d40d45a95afc22dc2884f05b86d1d20052b03.zip
rnctree.py: make it usable as an stdin-stdout filter
Previous behaviour can be achieved setting debug flags. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-xrnctree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rnctree.py b/rnctree.py
index eb2d714..f691a4f 100755
--- a/rnctree.py
+++ b/rnctree.py
@@ -606,4 +606,4 @@ def make_nodetree(tokens):
if __name__ == '__main__':
- make_nodetree(token_list(sys.stdin.read())).prettyprint()
+ print make_nodetree(token_list(sys.stdin.read())).toxml()