From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 057F23858C20; Mon, 13 Feb 2023 17:26:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 057F23858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676309189; bh=UomP2KWndq5Ovosoin7jdt4vlZ3/Jqrw3v5vLqH4IsY=; h=From:To:Subject:Date:From; b=oX4JpfiHPROnCKSVufe0zFoZRj4uT9sVVRY3FOye1rrlGj22yWrYjMT95JvbQ9zBQ klr9OheifvtGs+HqPXVbhdr6TLn37k5RLle4xnH/T9TT/z4f4Q78hnG6+sFoVvqdYV kW5fm/N8a5/I+39b9yOIrCxbVbjY5HpppFOo0QFc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove unused imports from gdb's Python code X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: d27ff777c65654bc4166165cc45743fcc7bae3a0 X-Git-Newrev: da59d966b8d182653f9bf3cfa93f921e8993757b Message-Id: <20230213172629.057F23858C20@sourceware.org> Date: Mon, 13 Feb 2023 17:26:29 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dda59d966b8d1= 82653f9bf3cfa93f921e8993757b commit da59d966b8d182653f9bf3cfa93f921e8993757b Author: Tom Tromey Date: Mon Feb 13 10:16:05 2023 -0700 Remove unused imports from gdb's Python code =20 The "sys" import is unused in several Python files. This removes this line from all the places where it is unnecessary. Diff: --- gdb/python/lib/gdb/command/explore.py | 1 - gdb/python/lib/gdb/printer/bound_registers.py | 2 -- gdb/python/lib/gdb/printing.py | 1 - gdb/python/lib/gdb/xmethod.py | 1 - 4 files changed, 5 deletions(-) diff --git a/gdb/python/lib/gdb/command/explore.py b/gdb/python/lib/gdb/com= mand/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.""" =20 import gdb -import sys =20 =20 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 . =20 -import sys - import gdb.printing =20 =20 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 =20 =20 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 @@ =20 import gdb import re -import sys =20 =20 class XMethod(object):