diff options
author | Anthony King <anthonydking@slimroms.net> | 2015-10-31 14:55:28 -0400 |
---|---|---|
committer | Tom Powell <zifnab@zifnab06.net> | 2016-01-04 10:50:35 -0800 |
commit | 3e087e10d1359ce11a46da2f71ae1e72be885394 (patch) | |
tree | 12069f3a2442a7b6c8eb2ecfe5a2e487801b1e93 /tools | |
parent | 4ac664e39798be528a658f332b6e7348a1a53d4d (diff) | |
download | build-3e087e10d1359ce11a46da2f71ae1e72be885394.zip build-3e087e10d1359ce11a46da2f71ae1e72be885394.tar.gz build-3e087e10d1359ce11a46da2f71ae1e72be885394.tar.bz2 |
py3: filter-product-graph
Change-Id: I1f028e054f8b261b486d152b57d6a97bfb9c42af
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/filter-product-graph.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/filter-product-graph.py b/tools/filter-product-graph.py index b3a5b42..d6100d8 100755 --- a/tools/filter-product-graph.py +++ b/tools/filter-product-graph.py @@ -1,6 +1,8 @@ #!/usr/bin/env python # vim: ts=2 sw=2 nocindent +from __future__ import print_function + import re import sys @@ -55,13 +57,13 @@ def main(): deps = [dep for dep in deps if dep[1] in included] infos = [info for info in infos if info[0] in included] - print "digraph {" - print "graph [ ratio=.5 ];" + print("digraph {") + print("graph [ ratio=.5 ];") for dep in deps: - print '"%s" -> "%s"' % dep + print('"%s" -> "%s"' % dep) for info in infos: - print '"%s"%s' % info - print "}" + print('"%s"%s' % info) + print("}") if __name__ == "__main__": |