From 9c4f1b3cacb87545205518a12865b7ca7a0978ff Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Thu, 2 Dec 2021 10:43:14 -0800 Subject: [PATCH] Use input instead of raw_input in gdbclient.py Following suggestions in b/194659728, update the python script to work under python3. Previous failure: Traceback (most recent call last): File "/android3/android/master/development/scripts/lldbclient.py", line 413, in main() File "/android3/android/master/development/scripts/lldbclient.py", line 405, in main do_main() File "/android3/android/master/development/scripts/lldbclient.py", line 400, in do_main raw_input("Press enter to shut down lldb-server") NameError: name 'raw_input' is not defined Bug: none Test: "lldbclient.py --setup-forwarding vscode-lldb -r /data/nativetest64/inputflinger_tests/inputflinger_tests --gtest_filter=PalmRejectorTest.GenericAxisValue_IsNotSet" Change-Id: I21d977cbc580894d6e2eb2f2f56dec04c65b0416 --- scripts/gdbclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdbclient.py b/scripts/gdbclient.py index bb9215189..b9764cd7e 100755 --- a/scripts/gdbclient.py +++ b/scripts/gdbclient.py @@ -397,7 +397,7 @@ def do_main(): lldb-server connection. Press enter in this terminal once debugging is finished to shut lldb-server down and close all the ports.""")) print("") - raw_input("Press enter to shut down lldb-server") + input("Press enter to shut down lldb-server") def main():