Message ID | 20230928174630.4004388-4-tromey@adacore.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3490618vqu; Thu, 28 Sep 2023 10:48:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPAMCK9pQfIbe68x5NDVBIdH10TOpsiVyw9B33JIMlTrvNOexrjszPQxtr97fbTWWsh1uH X-Received: by 2002:a17:906:32d0:b0:9b2:a7c9:fcfe with SMTP id k16-20020a17090632d000b009b2a7c9fcfemr1461046ejk.36.1695923330305; Thu, 28 Sep 2023 10:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695923330; cv=none; d=google.com; s=arc-20160816; b=pgk9q0qqmZA3XRzgAwEyM8i+Yeoe2pKPIDFhogugzSSd+zYvqwtxLON1G+gmggj7e7 VxV9oY/ianslbxk50uA/V9Nj6rdqmmMRaS8m5OCBeQ6YGWur11iTIMQnpxndcfEJeJRM dvpECCMEz9fotgf4N+eJbYXg8lTsi6nROprVP3rx/D7C8nfGZV0YKwdrjC1qaaAaW1/4 8pQOPZAcLO9DIDN3xkj7VkCB7IH0U/5k30k/suDe95aOf2Hxy6ezhUXtjtuEgzFj5DHM gBq7EN++p8TWacE7PpbDGGEAFT88g048AlDmyJNN4iqRpOwYBK4OUVCsaZBZZGNBf8ia yaCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=l2RrlGNByxcZfBqyeFvXiBTS4t+5kprkJSJHKYk9L70=; fh=Ogh3zaPUNpdNYHofIVNHsbX+D3lwaT1T8Jhe/MolwAA=; b=Q1Ciy+5yIrPzITSmTjvqo0tpXUrE/Y12mBkeW/YQ4oLB+bV+BLoZJbjf93/AFH6ACp E8xH0Ii0KCW1xwsCj0E5SGJ6L2x7aDXqNsgPRokZof4hdG5gXPWMPj0bIracUvqG+NFQ 92ITcFtapgCCrMkKms4gj/vQVxONA6f+UlXqC5Tsitw4uT5r4fDX9b4DnIgUje5j3LY3 by+SSOaHHh3h+d1IuSd4lHuF+UM6iSxewcpFlnaI3FzY/Mc4fUAxjIy2tHIHmGf4JXvg fVeul3J7AvhWOIACZtGl0t+Q0DeZp+oyVwBYOQ9+KQssii3pf3gwwH2Q61Hnl4Rn3LQE 45KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=WB9lo3j0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id v18-20020a170906859200b00992e26642ddsi6667414ejx.251.2023.09.28.10.48.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 10:48:50 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=WB9lo3j0; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 867913871037 for <ouuuleilei@gmail.com>; Thu, 28 Sep 2023 17:47:19 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 <gcc-patches@gcc.gnu.org>; 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 <gcc-patches@gcc.gnu.org>; 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-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 <tromey@adacore.com> To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org, Tom Tromey <tromey@adacore.com> 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778304501787346425 X-GMAIL-MSGID: 1778304501787346425 |
Series |
libstdc++: Use gdb.ValuePrinter in pretty-printers
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Tom Tromey
Sept. 28, 2023, 5:46 p.m. UTC
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(-)
Comments
On Thu, 28 Sept 2023, 18:50 Tom Tromey via Libstdc++, <libstdc++@gcc.gnu.org> wrote: > flake8 pointed out some unused imports. > OK, thanks. > 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 <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 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 > >
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 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