Fixed Q003 (avoidable-escaped-quote): Change outer quotes to avoid escaping inner quotes

This commit is contained in:
Teal Dulcet
2024-03-10 07:54:51 -04:00
committed by Joshua Tauberer
parent ca8f06d590
commit 4999ed7b1c
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ msg = MIMEMultipart('alternative')
# In Python 3.6:
#msg = Message()
msg['From'] = "\"{}\" <{}>".format(env['PRIMARY_HOSTNAME'], admin_addr)
msg['From'] = '"{}" <{}>'.format(env['PRIMARY_HOSTNAME'], admin_addr)
msg['To'] = admin_addr
msg['Subject'] = "[{}] {}".format(env['PRIMARY_HOSTNAME'], subject)