mirror of
https://github.com/datafolklabs/cement.git
synced 2026-02-06 15:56:47 +00:00
Remove Comments
This commit is contained in:
parent
739c5cdcfc
commit
90753820f0
@ -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())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user