Skip to content

Commit

Permalink
Remove Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
derks committed Feb 27, 2024
1 parent 739c5cd commit 9075382
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions cement/ext/ext_smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,21 +186,6 @@ def _send_message(self, server, body, **params):

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())
Expand Down

0 comments on commit 9075382

Please sign in to comment.