Skip to content

Commit e156408

Browse files
committed
Change elif statement to if
1 parent 8ccd326 commit e156408

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/email/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def get_payload(self, i=None, decode=False):
313313
# If it does happen, turn the string into bytes in a way
314314
# guaranteed not to fail.
315315
bpayload = payload.encode('raw-unicode-escape')
316-
elif isinstance(payload, bytes):
316+
else:
317317
bpayload = payload
318318
if cte == 'quoted-printable':
319319
return quopri.decodestring(bpayload)

0 commit comments

Comments
 (0)