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 2021/12/04 14:42:37 UTC
[incubator-ponymail-foal] branch master updated: Buffer=1 does not make sense in binary mode
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
The following commit(s) were added to refs/heads/master by this push:
new 234fdeb Buffer=1 does not make sense in binary mode
234fdeb is described below
commit 234fdeb35f7935eac097f8b31947559e30ea65a9
Author: Sebb <se...@apache.org>
AuthorDate: Sat Dec 4 14:42:23 2021 +0000
Buffer=1 does not make sense in binary mode
---
tools/import-mbox.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 9212838..7a08de7 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -190,7 +190,7 @@ class SlurpThread(Thread):
bf.close() # explicit early close
bmd = gzip.decompress(bmd)
tmpfile = tempfile.NamedTemporaryFile(
- mode="w+b", buffering=1, delete=False
+ mode="w+b", delete=False
)
tmpfile.write(bmd)
tmpfile.flush()