From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id D5D1838582A1 for ; Thu, 28 Sep 2023 17:46:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D5D1838582A1 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-35133097583so32748775ab.1 for ; Thu, 28 Sep 2023 10:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1695923203; x=1696528003; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=l2RrlGNByxcZfBqyeFvXiBTS4t+5kprkJSJHKYk9L70=; b=WB9lo3j0PLD8CUdIKvE8t7Mu4rD2RMifpurpGu+BPca6e5g9X998WrPGK3LSt6EYD0 CGAuTFTgUkyIrnUuA1rDNHMIKNqqAnIT/7WFbKSsqseQZu5s0zVnKDHjUMN16100lx7m H97GUobwAoWJ/AatMbD+WjFhISwcO7yfZ0Gbv9sVa8q+aJClZJqwZQKVYP50LXx6E1BG XtebitkYz+nV1gOHN0vOhmNJSRoIVrffPf6NFcIb1k94otbxaH1MJNm9oKbPnM9uR7gT G0QqgoyyzEzzeugnSJH96O6OfSGOdn8HmLtNH5WYQTefBS3yUoW8wKG6FZFsGMPW2gne 7nag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695923203; x=1696528003; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l2RrlGNByxcZfBqyeFvXiBTS4t+5kprkJSJHKYk9L70=; b=hPttSxsoIo1IMrqIbI6nEvN8Q2AeQ66tnAktUYVfBlfD5UU8/pLw2BAlcsWRBYXryW PaVlLuahbq8UInXc/xEi9qy1tsctlYEMKwEvaQ5Uyb6VoFVkb4S/qt4pnYl2sK+rabOF 1loTvp2wMcRkfr80A+7gneC8s0/WRyCyumCtMvChl71zIQaUbpzd5Dz9GoR+ZiEi3//G bcc2FwKsjH8yXP/vz6ROcTkiaNia1XBAqIqyBcFxYESTiXnnzGUTHYj3UmtjmMtQC1Mv 8MSx8+eraBHATf/5F0CdtTny+IwMVZWUVPZilHNO4ySBF4VJ48qlAaWk09MSFXcrq6qL acuw== X-Gm-Message-State: AOJu0Yxx2CUeDDIe/UKCEhF3Rssd4zHf+8IeG3Ds+flKIiUuVqddipEE HCOHOjJmkNYGJ/hTSfgJJPjLker3Tpntm1Tcn8wkyg== X-Google-Smtp-Source: AGHT+IGNyTXsRFaWg0GGDqZc7xOSofWq5JcDSdKlD5RLci2lmnnH4eZRKsof2A2QRKtNtTvlsprTGw== X-Received: by 2002:a05:6e02:be8:b0:34c:bc7e:896c with SMTP id d8-20020a056e020be800b0034cbc7e896cmr1660356ilu.1.1695923203156; Thu, 28 Sep 2023 10:46:43 -0700 (PDT) Received: from localhost.localdomain (71-211-130-31.hlrn.qwest.net. [71.211.130.31]) by smtp.gmail.com with ESMTPSA id p6-20020a92d486000000b0034fc8c1c24fsm3450963ilg.54.2023.09.28.10.46.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 10:46:42 -0700 (PDT) From: Tom Tromey To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org, Tom Tromey Subject: [PATCH 3/7] libstdc++: Remove unused Python imports Date: Thu, 28 Sep 2023 11:46:26 -0600 Message-Id: <20230928174630.4004388-4-tromey@adacore.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230928174630.4004388-1-tromey@adacore.com> References: <20230928174630.4004388-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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 | 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 bbc4375541f..8d44244afb0 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 -- 2.40.1