Remove Comments

This commit is contained in:
BJ Dierkes 2024-02-26 23:42:35 -06:00
parent 739c5cdcfc
commit 90753820f0

View File

@ -186,21 +186,6 @@ class SMTPMailHandler(mail.MailHandler):
path = fs.abspath(path)
# filename = os.path.basename(path)
# # test for divider in filename
# i = filename.find('=')
# # split attname from filename
# if i < 0:
# attname = filename
# else:
# attname = filename[i+1:]
# filename = filename[0:i]
# # update the filename to read from
# path = fs.join(os.path.dirname(path), filename)
# add attachment
with open(path, 'rb') as file:
part.set_payload(file.read())