public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4320] libstdc++: Remove unused Python imports
@ 2023-09-28 20:56 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-09-28 20:56 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:bed1f8498a1ba0c5ffdb09fd9bd0c080d9bdfe8c

commit r14-4320-gbed1f8498a1ba0c5ffdb09fd9bd0c080d9bdfe8c
Author: Tom Tromey <tromey@adacore.com>
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'.

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 <http://www.gnu.org/licenses/>.
 
-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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-28 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28 20:56 [gcc r14-4320] libstdc++: Remove unused Python imports Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).