From: Tom Tromey Date: Mon, 13 Feb 2023 17:16:05 +0000 (-0700) Subject: Remove unused imports from gdb's Python code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da59d966b8d182653f9bf3cfa93f921e8993757b;p=binutils-gdb.git Remove unused imports from gdb's Python code The "sys" import is unused in several Python files. This removes this line from all the places where it is unnecessary. --- diff --git a/gdb/python/lib/gdb/command/explore.py b/gdb/python/lib/gdb/command/explore.py index db72f33e9db..821bfb081ea 100644 --- a/gdb/python/lib/gdb/command/explore.py +++ b/gdb/python/lib/gdb/command/explore.py @@ -17,7 +17,6 @@ """Implementation of the GDB 'explore' command using the GDB Python API.""" import gdb -import sys class Explorer(object): diff --git a/gdb/python/lib/gdb/printer/bound_registers.py b/gdb/python/lib/gdb/printer/bound_registers.py index e1566750ec0..08f30cbf286 100644 --- a/gdb/python/lib/gdb/printer/bound_registers.py +++ b/gdb/python/lib/gdb/printer/bound_registers.py @@ -14,8 +14,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import sys - import gdb.printing diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py index d6b7b85e404..740a96e60eb 100644 --- a/gdb/python/lib/gdb/printing.py +++ b/gdb/python/lib/gdb/printing.py @@ -19,7 +19,6 @@ import gdb import gdb.types import re -import sys class PrettyPrinter(object): diff --git a/gdb/python/lib/gdb/xmethod.py b/gdb/python/lib/gdb/xmethod.py index ab6cd28c303..ef7d2011e1c 100644 --- a/gdb/python/lib/gdb/xmethod.py +++ b/gdb/python/lib/gdb/xmethod.py @@ -18,7 +18,6 @@ import gdb import re -import sys class XMethod(object):