scripts: Add Python 3 support to tracing/draw_functrace.py
PATCH v2 1/1 scripts: Add Python 3 support to tracing/draw_functrace.py
Use the print function. This maintains Python 2 support and should have no functional change.
---
Changes from v1:
- Drop "from __future__ import print_function" as Python 2 is not long for this world and in this case the statement and function behave the same way.
scripts/tracing/draw_functrace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/tracing/draw_functrace.py +1 -1
@@ -123,7 +123,7 @@ def main(): tree = tree.getParent(caller) tree = tree.calls(callee, calltime) - print CallTree.ROOT + print(CallTree.ROOT) if __name__ == "__main__": main()
Signature · 1 line
2.17.1
2018-07-28 23:48 GMT+09:00 Jeremy Cline <[email protected]>:
Quoted 5 lines
Use the print function. This maintains Python 2 support and should have no functional change.
Signed-off-by Jeremy Cline <[email protected]>---
Applied to linux-kbuild. Thanks!
Quoted 28 lines
Changes from v1:
- Drop "from__future__importprint_function" as Python 2 is not long for this world and in this case the statement and function behave the same way.scripts/tracing/draw_functrace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/tracing/draw_functrace.py +1
-2@@ -123,7 +123,7 @@ def main(): tree = tree.getParent(caller) tree = tree.calls(callee, calltime) - print CallTree.ROOT + print(CallTree.ROOT) if __name__ == "__main__": main() --2.17.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Best Regards Masahiro Yamada