15 Mar
2021
15 Mar
'21
4:57 p.m.
On Mon, Mar 15, 2021, at 11:32 AM, Seth Seeger wrote:
On Mar 12, 2021, at 12:10 AM, Mark Sapiro <mark@msapiro.net> wrote:
You inspired me. See <https://www.msapiro.net/scripts/smtp_report>.
I get the following error:
File "./smtp_report", line 44 print(f' {lname}: {tot}') ^ SyntaxError: invalid syntax
I'm running python3 (3.5.3), and I'm afraid I don't know enough python to know what's wrong.
My wife fixed it! f-strings don't show up until Python 3.6. She rewrote the two print statements as:
print(' ' + lname + ': ' + str(tot))
Seth