]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove unused Python imports
authorTom Tromey <tromey@adacore.com>
Tue, 26 Sep 2023 19:46:57 +0000 (13:46 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 28 Sep 2023 20:55:54 +0000 (14:55 -0600)
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'.

libstdc++-v3/python/libstdcxx/v6/__init__.py
libstdc++-v3/python/libstdcxx/v6/printers.py

index df654acd0c2a05100b364ad37fdda71965b27468..8b2cbc60a1b5ffe3e8e819906134905c6547f69f 100644 (file)
@@ -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:
index 99f9c65615b38beffb89509552a3cd578d984ed6..0f7327b54e926d7906d836357e8131e8fae715b7 100644 (file)
@@ -19,7 +19,6 @@ import gdb
 import itertools
 import re
 import sys
-import os
 import errno
 import datetime