From patchwork Mon Oct 26 01:04:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1387397 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (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 4CKGzT1Ptbz9sT6 for ; Mon, 26 Oct 2020 12:12:53 +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=H13O3YsT; 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 4CKGzT0KgnzDqCl for ; Mon, 26 Oct 2020 12:12:53 +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::131; helo=mail-il1-x131.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=H13O3YsT; dkim-atps=neutral Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (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 4CKGph1RhvzDqDD for ; Mon, 26 Oct 2020 12:05:15 +1100 (AEDT) Received: by mail-il1-x131.google.com with SMTP id p10so6768866ile.3 for ; Sun, 25 Oct 2020 18:05:15 -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=WeV91A6Cp1AkvoZ5fy/uQbq7BnTNlUD9LPspa8PU/3U=; b=H13O3YsTJnAjk4JrDjeoaOrSvyYPHaGyRYtvEN+5H4fTV20VYKR9h9McvPfro2pKO/ 1rO6zs04EGWCr3XJtsSZlfB1ieUfXLEvLkShBenQxI2qKo2yBjvBctxM0gCrqOyvZX4p Cqn7VbBD17uvv5DnAn+DQ05LsI9uVXSFp8oXc= 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=WeV91A6Cp1AkvoZ5fy/uQbq7BnTNlUD9LPspa8PU/3U=; b=XRUGFooy8qfyvDtlGRMKE0cKcymf8IhtgUVEaEG4uZ+D+42+uG/I8XtUnNjoPfo3Bo NmCZYm5jlwEMyI43lqnSzDIpjPnGHbvFJ2DTnU9p8LZjoDsf7XUwV2gIbz4sCosjWAmj TV/eMBW9ZmOuxRCq/L1T+P60C+DsaTuDCS7lvAlwWhqrQYoH1CLHgX2+WVU5pqM2CyJc TZbBtHuLo/d4nj/lQUPwSNGrJiUWkf05x4fPTspAQHlewk8JQxibd9InBUM/PX/jO0kn Iy3pcjYCqwlw2SqnhgEaBcekYOKegfPW8b9J3YFwpNYjaG0JNRZjZL0b7gC7prMfP7au ohvA== X-Gm-Message-State: AOAM531bOpq/N8u19t8kd8Y7FEABB5JlpVeBHXJ2uotFMNMLCJLqkvn0 rhXIesMe64dkzQFUunRyLwRyDw== X-Google-Smtp-Source: ABdhPJzzK6SsYWEa9QNOtjA2nwFA860w2uDRmCtc0zsPWkxRMAQIkZ/EFuWwKsripwmq3aAPvfjLcQ== X-Received: by 2002:a92:ba56:: with SMTP id o83mr9682105ili.19.1603674312123; Sun, 25 Oct 2020 18:05:12 -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 a6sm5231162ili.11.2020.10.25.18.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 18:05:11 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Subject: [PATCH v2 12/30] patman: Drop unused args in patchstream Date: Sun, 25 Oct 2020 19:04:24 -0600 Message-Id: <20201026010442.1606893-13-sjg@chromium.org> X-Mailer: git-send-email 2.29.0.rc2.309.g374f81d7ae-goog In-Reply-To: <20201026010442.1606893-1-sjg@chromium.org> References: <20201026010442.1606893-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: Tom Rini , Simon Glass , patchwork@lists.ozlabs.org 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 --- (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'