From 8830307e385f71fc8a6b17489be8173feb65756f Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Sat, 7 Aug 2021 17:26:01 +0200 Subject: [PATCH] Drop syntax that won't run on Python 3.7 --- vdirsyncer/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vdirsyncer/http.py b/vdirsyncer/http.py index 42da400..979d7fc 100644 --- a/vdirsyncer/http.py +++ b/vdirsyncer/http.py @@ -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)