From commits-return-1085-archive-asf-public=cust-asf.ponee.io@ponymail.incubator.apache.org Fri May 25 18:02:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 35341180627 for ; Fri, 25 May 2018 18:02:05 +0200 (CEST) Received: (qmail 75712 invoked by uid 500); 25 May 2018 16:02:04 -0000 Mailing-List: contact commits-help@ponymail.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ponymail.incubator.apache.org Delivered-To: mailing list commits@ponymail.incubator.apache.org Received: (qmail 75703 invoked by uid 99); 25 May 2018 16:02:04 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2018 16:02:04 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 9B85982AE6; Fri, 25 May 2018 16:02:03 +0000 (UTC) Date: Fri, 25 May 2018 16:02:03 +0000 To: "commits@ponymail.apache.org" Subject: [incubator-ponymail] branch master updated: Flag unused parameters with underscore prefix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152726412359.22214.2655681748696912647@gitbox.apache.org> From: sebb@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-ponymail X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: c2004b86897ea893ab188abae19843c00a7342f9 X-Git-Newrev: 19732deef24be580bd88ff30144cdd6b73824d07 X-Git-Rev: 19732deef24be580bd88ff30144cdd6b73824d07 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git The following commit(s) were added to refs/heads/master by this push: new 19732de Flag unused parameters with underscore prefix 19732de is described below commit 19732deef24be580bd88ff30144cdd6b73824d07 Author: Sebb AuthorDate: Fri May 25 17:02:02 2018 +0100 Flag unused parameters with underscore prefix Also stops pylint complaining --- tools/generators.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/generators.py b/tools/generators.py index d801410..b3a4b20 100644 --- a/tools/generators.py +++ b/tools/generators.py @@ -26,7 +26,7 @@ import re # Full generator: uses the entire email (including server-dependent data) # This is the recommended generator for single-node setups. -def full(msg, body, lid, attachments): +def full(msg, _body, lid, _attachments): """ Full generator: uses the entire email (including server-dependent data) @@ -35,9 +35,9 @@ def full(msg, body, lid, attachments): Parameters: msg - the parsed message - body - the parsed text content (not used) + _body - the parsed text content (not used) lid - list id - attachments - list of attachments (not used) + _attachments - list of attachments (not used) Returns: "@" where hash is sha224 of message bytes """ @@ -46,7 +46,7 @@ def full(msg, body, lid, attachments): # Medium: Standard 0.9 generator - Not recommended for future installations. # See 'full' or 'cluster' generators instead. -def medium(msg, body, lid, attachments): +def medium(msg, body, lid, _attachments): """ Standard 0.9 generator - Not recommended for future installations. (does not generate sufficiently unique ids) @@ -63,7 +63,7 @@ def medium(msg, body, lid, attachments): msg - the parsed message (used to get the date) body - the parsed text content (may be null) lid - list id - attachments - list of attachments (not used) + _attachments - list of attachments (not used) Returns: "@" where hash is sha224 of the message items noted above """ @@ -165,7 +165,7 @@ def cluster(msg, body, lid, attachments): # Old school way of making IDs -def legacy(msg, body, lid, attachments): +def legacy(msg, body, lid, _attachments): """ Original generator - DO NOT USE (does not generate unique ids) @@ -179,7 +179,7 @@ def legacy(msg, body, lid, attachments): msg - the parsed message (used to get the date) body - the parsed text content (may be null) lid - list id - attachments - list of attachments (not used) + _attachments - list of attachments (not used) Returns: "@@" where hash is sha224 of the message items noted above """ -- To stop receiving notification emails like this one, please contact sebb@apache.org.