Skip to content

Commit 791e682

Browse files
author
Yamil Asusta
committed
Merge pull request #85 from demoore/fix-utf
Fix utf typo
2 parents 4d2cc1d + 978381c commit 791e682

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sendgrid/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def add_attachment(self, name, file_):
127127

128128
def add_attachment_stream(self, name, string):
129129
if sys.version_info < (3, 0) and isinstance(name, unicode):
130-
name = name.encode('uft-8')
130+
name = name.encode('utf-8')
131131
if isinstance(string, str):
132132
self.files[name] = string
133133
elif isinstance(string, io.BytesIO):

0 commit comments

Comments
 (0)