Skip to content

Commit

Permalink
pep format code
Browse files Browse the repository at this point in the history
  • Loading branch information
fedelemantuano committed Nov 24, 2020
1 parent adaf072 commit f40b7b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mailparser/mailparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,12 @@ def parse(self):
filename, i))
elif "uuencode" in transfer_encoding:
# Re-encode in base64
payload = base64.b64encode(p.get_payload(decode=True)).decode('ascii')
payload = base64.b64encode(
p.get_payload(decode=True)).decode('ascii')
binary = True
transfer_encoding = "base64"
log.debug("Filename {!r} part {!r} is binary (uuencode re-encoded to base64)".format(
filename, i))
log.debug("Filename {!r} part {!r} is binary (uuencode"
" re-encoded to base64)".format(filename, i))
else:
payload = ported_string(
p.get_payload(decode=True), encoding=charset)
Expand Down

0 comments on commit f40b7b0

Please sign in to comment.