diff options
author | Tom Tromey <tromey@adacore.com> | 2023-02-13 10:16:05 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-02-13 10:22:48 -0700 |
commit | da59d966b8d182653f9bf3cfa93f921e8993757b (patch) | |
tree | fe3d432f06924876c5f31574afb8e7972efb213a /gdb | |
parent | d27ff777c65654bc4166165cc45743fcc7bae3a0 (diff) | |
download | gdb-da59d966b8d182653f9bf3cfa93f921e8993757b.zip gdb-da59d966b8d182653f9bf3cfa93f921e8993757b.tar.gz gdb-da59d966b8d182653f9bf3cfa93f921e8993757b.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/python/lib/gdb/command/explore.py | 1 | ||||
-rw-r--r-- | gdb/python/lib/gdb/printer/bound_registers.py | 2 | ||||
-rw-r--r-- | gdb/python/lib/gdb/printing.py | 1 | ||||
-rw-r--r-- | gdb/python/lib/gdb/xmethod.py | 1 |
4 files changed, 0 insertions, 5 deletions
diff --git a/gdb/python/lib/gdb/command/explore.py b/gdb/python/lib/gdb/command/explore.py index db72f33..821bfb0 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 e156675..08f30cb 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 <http://www.gnu.org/licenses/>. -import sys - import gdb.printing diff --git a/gdb/python/lib/gdb/printing.py b/gdb/python/lib/gdb/printing.py index d6b7b85..740a96e 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 ab6cd28..ef7d201 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): |