ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [incubator-ponymail] branch master updated: Flag unused parameters with underscore prefix
Date Fri, 25 May 2018 16:55:57 GMT
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 5d71102  Flag unused parameters with underscore prefix
5d71102 is described below

commit 5d71102128e38aa309551bada171a1d51edd822f
Author: Sebb <sebb@apache.org>
AuthorDate: Fri May 25 17:55:56 2018 +0100

    Flag unused parameters with underscore prefix
    
    Also stops pylint complaining
---
 tools/archiver.py          | 4 ++--
 tools/email_utils_patch.py | 2 +-
 tools/trace.py             | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/archiver.py b/tools/archiver.py
index 0416cee..ca22339 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -567,12 +567,12 @@ class Archiver(object): # N.B. Also used by import-mbox.py
             # No, so must use base64 to avoid corruption on re-encoding
             return encode_base64(b)
 
-    def list_url(self, mlist):
+    def list_url(self, _mlist):
         """ Required by MM3 plugin API
         """
         return None
 
-    def permalink(self, mlist, msg):
+    def permalink(self, _mlist, _msg):
         """ Required by MM3 plugin API
         """
         return None
diff --git a/tools/email_utils_patch.py b/tools/email_utils_patch.py
index 8aec7b9..29adeb8 100644
--- a/tools/email_utils_patch.py
+++ b/tools/email_utils_patch.py
@@ -47,7 +47,7 @@ def _collapse_rfc2231_value(value, errors='replace',
     # While value comes to us as a unicode string, we need it to be a bytes
     # object.  We do not want bytes() normal utf-8 decoder, we want a straight
     # interpretation of the string as character bytes.
-    charset, language, text = value
+    charset, _language, text = value
     if charset is None:
         # Issue 17369: if charset/lang is None, decode_rfc2231 couldn't parse
         # the value, so use the fallback_charset.
diff --git a/tools/trace.py b/tools/trace.py
index c16c3ec..8d7e6b9 100644
--- a/tools/trace.py
+++ b/tools/trace.py
@@ -45,7 +45,7 @@ def trace(s='', depth=1):
     stack=inspect.stack()
     maxIndex = len(stack) - 1
     depth = maxIndex if depth >= maxIndex else depth
-    frame,filename,line_number,function_name,lines,index = stack[depth]
+    _frame,filename,line_number,function_name,_lines,_index = stack[depth]
     print(">>>>[%d]%s@%s#%s: %s"%(depth,basename(filename),line_number,function_name,s))
 
 def func_name(depth=1):
@@ -55,7 +55,7 @@ def func_name(depth=1):
     stack=inspect.stack()
     maxIndex = len(stack) - 1
     depth = maxIndex if depth >= maxIndex else depth
-    frame,filename,line_number,function_name,lines,index = stack[depth]
+    _frame,_filename,_linenumber,function_name,_lines,_index = stack[depth]
     return function_name
 
 if __name__ == '__main__':

-- 
To stop receiving notification emails like this one, please contact
sebb@apache.org.

Mime
View raw message