From patchwork Fri Oct 30 03:46:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1390755 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CMpJh1KZTz9sPB for ; Fri, 30 Oct 2020 14:51:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=RSJGxt4F; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CMpJg3WzSzDqsh for ; Fri, 30 Oct 2020 14:51:31 +1100 (AEDT) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=chromium.org (client-ip=2607:f8b0:4864:20::142; helo=mail-il1-x142.google.com; envelope-from=sjg@chromium.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=RSJGxt4F; dkim-atps=neutral Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CMpCT3s67zDqdc for ; Fri, 30 Oct 2020 14:47:01 +1100 (AEDT) Received: by mail-il1-x142.google.com with SMTP id a20so5310793ilk.13 for ; Thu, 29 Oct 2020 20:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+WclaPIMQ9K4GJQFHchtpP7pR0forxIg9n8ll4hCyYM=; b=RSJGxt4FggJmhjiy0GBdFGyZF692N9TtCmLU01bCri/sQfVsJEUqFj9cvcPa1DhrKY qzX6oKG5EnHVHH8WzzwLGorfoiIF7HoDWX531vTleyDGUfBl3StpPmdNb4NiLAPZzgDG D6/R8sURQftAV0nNWWhLEFjLjtstm5xdXSVO0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+WclaPIMQ9K4GJQFHchtpP7pR0forxIg9n8ll4hCyYM=; b=dAg6TSBBz5qHGwAbDsNfYlmofHlvyv0crCnAePbR4Z1U0zuZI94LH94jlxFjtYnWFf /up6X6kSZfOqEDQCbBHfL3OYFUahFrBr2PYb/rI/T7/rZ73/JURFkTWaAlTO1kgVJ4qC fNxjfTQAKSyEzPqscqcXPWd4TgfvuANcIBS9ykhrsH9oCKBcBmEdyXJ4RnD2m9RpCnzT 80L0H+tecoWk8HVoyLo6myNVnT+r8swCFXy5pprzqU3q9g1XGdVnLVgRIn8BH0cGdz6W tMwwFb8cYhRoey+QYHWpliPK7Doa1tIWIM2hrqIM7oKcMrv0SqeEEGIbc5Y9kF+ZCgmS qv0A== X-Gm-Message-State: AOAM530fUb9wV7idi2EoEyjBGmZ4y/tpcZMl7zqYdUXwLUiFd3lw4saE LyNBLxGRptF8ofAfo4lgHj/uC39NvxfGw2Z6 X-Google-Smtp-Source: ABdhPJx82T2DBrpV+YA/LQ6jvq3qu8oSdCeey3teSJYEChh8fFfu8KwVq3LCh+u7TLtXeEmJip6ABQ== X-Received: by 2002:a92:c529:: with SMTP id m9mr464291ili.195.1604029615696; Thu, 29 Oct 2020 20:46:55 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id n28sm4858693ila.52.2020.10.29.20.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Oct 2020 20:46:55 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Subject: [PATCH v3 12/29] patman: Drop unused args in patchstream Date: Thu, 29 Oct 2020 21:46:21 -0600 Message-Id: <20201030034638.2858999-13-sjg@chromium.org> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog In-Reply-To: <20201030034638.2858999-1-sjg@chromium.org> References: <20201030034638.2858999-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: patchwork@lists.ozlabs.org, Simon Glass , Tom Rini Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" Drop a few arguments that are not used in functions. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- (no changes since v1) tools/patman/patchstream.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index 3a057fbd6c4..c5402dd896a 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -64,7 +64,7 @@ class PatchStream: unwanted tags or inject additional ones. These correspond to the two phases of processing. """ - def __init__(self, series, name=None, is_log=False): + def __init__(self, series, is_log=False): self.skip_blank = False # True to skip a single blank line self.found_test = False # Found a TEST= line self.lines_after_test = 0 # Number of lines found after TEST= @@ -100,15 +100,13 @@ class PatchStream: if self.is_log: self.series.AddTag(self.commit, line, name, value) - def _add_to_commit(self, line, name, value): + def _add_to_commit(self, name): """Add a new Commit-xxx tag. When a Commit-xxx tag is detected, we come here to record it. Args: - line: Source line containing tag (useful for debug/error messages) name: Tag name (part after 'Commit-') - value: Tag value (part after 'Commit-xxx: ') """ if name == 'notes': self.in_section = 'commit-' + name @@ -349,7 +347,7 @@ class PatchStream: name = commit_tag_match.group(1) value = commit_tag_match.group(2) if name == 'notes': - self._add_to_commit(line, name, value) + self._add_to_commit(name) self.skip_blank = True elif name == 'changes': self.in_change = 'Commit'