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 01:00:36 UTC

[incubator-ponymail] branch master updated: pylint: unused/duplicate imports

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 0d4f338  pylint: unused/duplicate imports
0d4f338 is described below

commit 0d4f338be6aa42c8fd12b9b0ba127f47bc6ac465
Author: Sebb <se...@apache.org>
AuthorDate: Mon May 21 02:00:35 2018 +0100

    pylint: unused/duplicate imports
---
 tools/archiver.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tools/archiver.py b/tools/archiver.py
index dc89e90..2201ebf 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -45,7 +45,6 @@ ES_MAJOR = ES_VERSION[0]
 from formatflowed import convertToWrapped
 import hashlib
 import email.utils
-from email import policy
 import time
 from collections import namedtuple
 import re
@@ -54,7 +53,6 @@ import chardet
 import configparser
 import os
 import fnmatch
-import io
 import logging
 import traceback
 import sys
@@ -79,7 +77,6 @@ if config.has_section('mailman') and config.has_option('mailman', 'plugin'):
     from mailman.interfaces.archiver import ArchivePolicy
     logger = logging.getLogger("mailman.archiver")
 elif __name__ == '__main__':
-    import sys
     import argparse
 
 if config.has_option('elasticsearch', 'user'):
@@ -694,7 +691,6 @@ if __name__ == '__main__':
                 print("%s: Done archiving to %s as %s!" % (email.utils.formatdate(), lid, mid))
             except Exception as err:
                 if args.verbose:
-                    import traceback
                     traceback.print_exc()
                 print("Archiving failed!: %s" % err)
                 raise Exception("Archiving to ES failed")

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