Skip to content

Commit

Permalink
auto lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sim0nx committed Dec 28, 2023
1 parent 5e1b9fa commit c2e341f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eml_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ def get_raw_body_text(self, msg: email.message.Message, boundary: typing.Optiona
# pylint: disable=too-many-boolean-expressions
if (
('content-disposition' not in msg and msg.get_content_maintype() == 'text')
or (filename.endswith('.html') or filename.endswith('.htm'))
or (filename.endswith(('.html', '.htm')))
or ('content-disposition' in msg and msg.get_content_disposition() == 'inline' and msg.get_content_maintype() == 'text')
):
encoding = msg.get('content-transfer-encoding', '').lower()
Expand Down

0 comments on commit c2e341f

Please sign in to comment.