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 2016/11/08 17:00:27 UTC

incubator-ponymail git commit: Don't redefine built-in methods

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master c6ff667c9 -> fe894e2ad


Don't redefine built-in methods

[Pylint]

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/fe894e2a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/fe894e2a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/fe894e2a

Branch: refs/heads/master
Commit: fe894e2adeb973852e8562a94d97130589146e7f
Parents: c6ff667
Author: Sebb <se...@apache.org>
Authored: Tue Nov 8 16:59:39 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Tue Nov 8 16:59:39 2016 +0000

----------------------------------------------------------------------
 tools/archiver.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/fe894e2a/tools/archiver.py
----------------------------------------------------------------------
diff --git a/tools/archiver.py b/tools/archiver.py
index fc6b1af..320905e 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -244,8 +244,8 @@ class Archiver(object):
             else:
                 lid = lid.replace(self.cropout, "")
         
-        format = lambda value: value and str(value) or ""
-        msg_metadata = dict([(k, format(msg.get(k))) for k in self.keys])
+        defaultEmptyString = lambda value: value and str(value) or ""
+        msg_metadata = dict([(k, defaultEmptyString(msg.get(k))) for k in self.keys])
         mid = hashlib.sha224(str("%s-%s" % (lid, msg_metadata['archived-at'])).encode('utf-8')).hexdigest() + "@" + (lid if lid else "none")
         for key in ['to','from','subject','message-id']:
             try: