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 2020/09/08 18:32:35 UTC
[incubator-ponymail-foal] 02/02: explantatory name
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-foal.git
commit 9f4b558a6b8c19d9dd7636b7893fc8b750707d4b
Author: Sebb <se...@apache.org>
AuthorDate: Tue Sep 8 19:32:17 2020 +0100
explantatory name
---
tools/import-mbox.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 6b0360a..7c22ba9 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -139,7 +139,7 @@ class SlurpThread(Thread):
block.release()
stime = time.time()
- dFile = False
+ delete_file = False
if imap:
imap4 = mla[2]
@@ -167,7 +167,7 @@ class SlurpThread(Thread):
tmpfile.flush()
tmpfile.close()
tmpname = tmpfile.name
- dFile = True # Slated for deletion upon having been read
+ delete_file = True # Slated for deletion upon having been read
self.printid("%s -> %u bytes" % (tmpname, len(bmd)))
except Exception as err:
self.printid("This wasn't a gzip file: %s" % err)
@@ -358,7 +358,7 @@ class SlurpThread(Thread):
self.printid(
"Parsed %u records (failed: %u) from %s" % (count, bad, filename)
)
- if dFile:
+ if delete_file:
os.unlink(tmpname)
elif imap:
self.printid("Parsed %u records (failed: %u) from imap" % (count, bad))