From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id DC5C33835311; Mon, 13 Nov 2023 15:44:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DC5C33835311 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699890295; bh=kalr9IYd6NJ1VzOCaVuqZFIr9bk6w/aWwTBGChrPIYI=; h=From:To:Subject:Date:From; b=dprMXV0RPU9Gg9CKvjBWG80xBhrY67c+zXVe95z+OCn7TapQ7h51BdyGTK8X0OUf5 rrtpf5IoOXZfDpYwHSJTRdmz7FVmagRV4OHk8lwx5nZikSlpkYbqVp4+a5H8GErcLU ZQy0KY5yWUaCMC2qyefNgjYtXeCI55KZUHry67UA= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-8055] libstdc++: Remove unused Python imports X-Act-Checkin: gcc X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/releases/gcc-13 X-Git-Oldrev: add5874a569f79cafa23d69a26054ec86c09b82b X-Git-Newrev: 41c20618ffce50f93fcaf1a5fb77a7517bcf9e5b Message-Id: <20231113154455.DC5C33835311@sourceware.org> Date: Mon, 13 Nov 2023 15:44:55 +0000 (GMT) List-Id: https://gcc.gnu.org/g:41c20618ffce50f93fcaf1a5fb77a7517bcf9e5b commit r13-8055-g41c20618ffce50f93fcaf1a5fb77a7517bcf9e5b Author: Tom Tromey Date: Tue Sep 26 13:46:57 2023 -0600 libstdc++: Remove unused Python imports flake8 pointed out some unused imports. libstdc++-v3/ChangeLog: * python/libstdcxx/v6/printers.py: Don't import 'os'. * python/libstdcxx/v6/__init__.py: Don't import 'gdb'. (cherry picked from commit bed1f8498a1ba0c5ffdb09fd9bd0c080d9bdfe8c) Diff: --- libstdc++-v3/python/libstdcxx/v6/__init__.py | 2 -- libstdc++-v3/python/libstdcxx/v6/printers.py | 1 - 2 files changed, 3 deletions(-) diff --git a/libstdc++-v3/python/libstdcxx/v6/__init__.py b/libstdc++-v3/python/libstdcxx/v6/__init__.py index df654acd0c2..8b2cbc60a1b 100644 --- a/libstdc++-v3/python/libstdcxx/v6/__init__.py +++ b/libstdc++-v3/python/libstdcxx/v6/__init__.py @@ -13,8 +13,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import gdb - # Load the xmethods if GDB supports them. def gdb_has_xmethods(): try: diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 99f9c65615b..0f7327b54e9 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -19,7 +19,6 @@ import gdb import itertools import re import sys -import os import errno import datetime