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 <[email protected]>
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()

Reply via email to