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/21 00:54:44 UTC

[incubator-ponymail] branch master updated: pylint: unused variables

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 d346377  pylint: unused variables
d346377 is described below

commit d3463775f1ff7bcff22a6d1f977fee50618369be
Author: Sebb <se...@apache.org>
AuthorDate: Mon May 21 01:54:43 2018 +0100

    pylint: unused variables
---
 tools/import-mbox.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 85c4967..ffb5444 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -120,7 +120,6 @@ class BulkThread(Thread):
         sys.stderr.flush()
 
         js_arr = []
-        i = 0
         for entry in self.json:
             js = entry
             mid = js['mid']
@@ -175,8 +174,6 @@ class SlurpThread(Thread):
             finally:
                 block.release()
 
-            EY = 1980
-            EM = 1
             stime = time.time()
             dFile = False
             if maildir:
@@ -215,12 +212,6 @@ class SlurpThread(Thread):
                 ml = mla[0]
                 mboxfile = mla[1]
                 self.printid("Slurping %s/%s" % (ml, mboxfile))
-                m = re.match(r"(\d\d\d\d)(\d\d)", mboxfile)
-                EY = 1997
-                EM = 1
-                if m:
-                    EY = int(m.group(1))
-                    EM = int(m.group(2))
                 ctx = urlopen("%s%s/%s" % (source, ml, mboxfile ))
                 inp = ctx.read().decode(ctx.headers.get_content_charset() or 'utf-8', errors='ignore')
     
@@ -231,7 +222,6 @@ class SlurpThread(Thread):
 
             count = 0
             bad = 0
-            LEY = EY
             
             
             for key in messages.iterkeys():

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