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: Don't redefine built-in 'id'
Date Fri, 25 May 2018 18:05:17 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 f460d23  Don't redefine built-in 'id'
f460d23 is described below

commit f460d23faece9f2b4df7c01a90144cbd3e2e631e
Author: Sebb <sebb@apache.org>
AuthorDate: Fri May 25 19:05:13 2018 +0100

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

diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 881515a..a7fba24 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -107,9 +107,9 @@ rootURL = ""
 
 class BulkThread(Thread):
 
-    def __init__(self, id, json, xes, dtype = 'mbox', wc = 'quorum'):
+    def __init__(self, name, json, xes, dtype = 'mbox', wc = 'quorum'):
         Thread.__init__(self)
-        self.id = id
+        self.name = name
         self.json = json
         self.xes = xes
         self.dtype = dtype
@@ -138,8 +138,8 @@ class BulkThread(Thread):
             try:
                 helpers.bulk(self.xes, js_arr)
             except Exception as err:
-                print("%s: Warning: Could not bulk insert: %s into %s" % (self.id,err,self.dtype))
-#             print("%s: Inserted %u entries into %s" % (self.id, len(js_arr),self.dtype))
+                print("%s: Warning: Could not bulk insert: %s into %s" % (self.name,err,self.dtype))
+#             print("%s: Inserted %u entries into %s" % (self.name, len(js_arr),self.dtype))
 
 class SlurpThread(Thread):
 

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

Mime
View raw message