diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index 594a4cd1f9e..2ef5dc3ac8f 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -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'