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:33 UTC

[incubator-ponymail-foal] branch master updated (831fc8a -> 9f4b558)

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git.


    from 831fc8a  Add .tmp files
     new a575b2c  Unused
     new 9f4b558  explantatory name

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 server/main.py       | 2 +-
 tools/import-mbox.py | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)


[incubator-ponymail-foal] 02/02: explantatory name

Posted by se...@apache.org.
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))


[incubator-ponymail-foal] 01/02: Unused

Posted by se...@apache.org.
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 a575b2c46361c7f7f2600642a758e4ede631dac9
Author: Sebb <se...@apache.org>
AuthorDate: Tue Sep 8 19:31:49 2020 +0100

    Unused
---
 server/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/main.py b/server/main.py
index cec6dad..3ffb88b 100644
--- a/server/main.py
+++ b/server/main.py
@@ -56,7 +56,7 @@ class Server(plugins.server.BaseServer):
         self.server = None
 
         # Make a pool of 15 database connections for async queries
-        for n in range(1, 15):
+        for _ in range(1, 15):
             self.dbpool.put_nowait(plugins.database.Database(self.config.database))
 
         # Load each URL endpoint