Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Oct 16, 2020
1 parent 4cb4bc6 commit e0ca200
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,10 @@ def get_encoding(self) -> str:
except LookupError:
encoding = None
if not encoding:
if mimetype.type == 'application' and (mimetype.subtype == 'json' or mimetype.subtype == 'rdap'):
if (
mimetype.type == 'application' and
(mimetype.subtype == 'json' or mimetype.subtype == 'rdap')
):
# RFC 7159 states that the default encoding is UTF-8.
# RFC 7483 defines application/rdap+json
encoding = 'utf-8'
Expand Down

0 comments on commit e0ca200

Please sign in to comment.