Python: fix print statements in

No change to logic. This fixes an issue introduced in That CL converted all python2 print
statements to use parentheses, however `print()` will literally print
`()` (it's a print statement with an empty tuple as an argument). As a
quick fix, import the actual print_function to get the correct behavior.
This will have no effect on python3 since the print function is builtin.

Bug: 1223892
Test: third_party/android_platform/development/scripts/stack --help
Change-Id: I1e2e7eb58c77b7ab4449e28932ff05a9b3598a8b
Commit-Queue: Andrew Grieve <>
Auto-Submit: Nate Fischer <>
Reviewed-by: Andrew Grieve <>
Cr-Commit-Position: refs/heads/main@{#927499}
GitOrigin-RevId: c08a1ab3b27b48e2664003abf2a62ba89d291d3b
diff --git a/development/scripts/ b/development/scripts/
index ccf1f47..bcd1685 100755
--- a/development/scripts/
+++ b/development/scripts/
@@ -16,6 +16,8 @@
 """stack symbolizes native crash dumps."""
+from __future__ import print_function
 import getopt
 import glob
 import logging