Drop syntax that won't run on Python 3.7

This commit is contained in:
Hugo Osvaldo Barrera 2021-08-07 17:26:01 +02:00
parent 7a7deffa2c
commit 8830307e38

View file

@ -140,8 +140,8 @@ async def request(
kwargs.pop("cert", None) # TODO XXX FIXME!
# Hacks to translate API
if auth := kwargs.pop("auth", None):
auth = kwargs.pop("auth", None)
if auth:
kwargs["auth"] = aiohttp.BasicAuth(*auth)
r = func(method, url, ssl=ssl, **kwargs)