diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-26 11:37:46 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-26 11:51:14 -0400 |
commit | 6bdd7cf11d503be3b85320668b223fcd5cc9f2f4 (patch) | |
tree | 29d9905b3804539e17687bc08d33a867270de143 /gdb/system-gdbinit | |
parent | 0b60b9634430caebb640ef9b943049bdc6aa8f6f (diff) | |
download | fsf-binutils-gdb-6bdd7cf11d503be3b85320668b223fcd5cc9f2f4.zip fsf-binutils-gdb-6bdd7cf11d503be3b85320668b223fcd5cc9f2f4.tar.gz fsf-binutils-gdb-6bdd7cf11d503be3b85320668b223fcd5cc9f2f4.tar.bz2 |
gdb: make some random Python files Python 3-compatible
I noticed that these files failed to format with Black, because they use
print without parenthesis (which isn't Python 3 compatible).
I don't know if these files are still relevant, but the change is
trivial, so here it is.
Change-Id: I116445c2b463486016f824d32effffc915b60766
Diffstat (limited to 'gdb/system-gdbinit')
-rw-r--r-- | gdb/system-gdbinit/elinos.py | 2 | ||||
-rw-r--r-- | gdb/system-gdbinit/wrs-linux.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/system-gdbinit/elinos.py b/gdb/system-gdbinit/elinos.py index 0672474..95a9529 100644 --- a/gdb/system-gdbinit/elinos.py +++ b/gdb/system-gdbinit/elinos.py @@ -21,7 +21,7 @@ import gdb def warn(msg): - print "warning: %s" % msg + print("warning: %s" % msg) def get_elinos_environment(): diff --git a/gdb/system-gdbinit/wrs-linux.py b/gdb/system-gdbinit/wrs-linux.py index 88e1109..e4b225a 100644 --- a/gdb/system-gdbinit/wrs-linux.py +++ b/gdb/system-gdbinit/wrs-linux.py @@ -21,5 +21,5 @@ if "ENV_PREFIX" in os.environ: gdb.execute("set sysroot %s" % os.environ["ENV_PREFIX"]) else: - print "warning: ENV_PREFIX environment variable missing." - print "The debugger will probably be unable to find the correct system libraries" + print("warning: ENV_PREFIX environment variable missing.") + print("The debugger will probably be unable to find the correct system libraries") |