You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/07/04 22:20:33 UTC
[whimsy] branch master updated: Neater
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/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new f668889 Neater
f668889 is described below
commit f6688893ec3232f3134b55ccf49b35130d2c9d5b
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jul 4 23:20:17 2020 +0100
Neater
---
secmail.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/secmail.py b/secmail.py
index 7389d8a..d7c753a 100644
--- a/secmail.py
+++ b/secmail.py
@@ -349,6 +349,5 @@ if __name__ == "__main__":
# update web page with last processed information
if last_processed and os.path.exists('../public_html/secmail.txt'):
- fh = open('../public_html/secmail.txt', 'w')
- fh.write("Latest email processed was sent: %s" % last_processed)
- fh.close()
+ with open('../public_html/secmail.txt', 'w') as fh:
+ fh.write("Latest email processed was sent: %s" % last_processed)