You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2018/05/24 09:27:50 UTC

[incubator-ponymail] branch master updated: pylint: Don't redefine built-in 'list'

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 4153f16  pylint: Don't redefine built-in 'list'
4153f16 is described below

commit 4153f163aa64de83af63647dd8d0bcb5e20b2290
Author: Sebb <se...@apache.org>
AuthorDate: Thu May 24 10:27:49 2018 +0100

    pylint: Don't redefine built-in 'list'
---
 tools/import-mbox.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 08074c2..8f59ec3 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -176,8 +176,8 @@ class SlurpThread(Thread):
             dFile = False
             if imap:
                 imap4 = mla[2]
-                def mailgen(list):
-                    for uid in list:
+                def mailgen(_list):
+                    for uid in _list:
                         msgbytes = imap4.uid('fetch', uid, '(RFC822)')[1][0][1]
                         yield email.message_from_bytes(msgbytes)
                 messages = mailgen(mla[0])

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