Skip to content

Commit 8830307

Browse files
author
Hugo Osvaldo Barrera
committed
Drop syntax that won't run on Python 3.7
1 parent 7a7deff commit 8830307

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vdirsyncer/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ async def request(
140140

141141
kwargs.pop("cert", None) # TODO XXX FIXME!
142142

143-
# Hacks to translate API
144-
if auth := kwargs.pop("auth", None):
143+
auth = kwargs.pop("auth", None)
144+
if auth:
145145
kwargs["auth"] = aiohttp.BasicAuth(*auth)
146146

147147
r = func(method, url, ssl=ssl, **kwargs)

0 commit comments

Comments
 (0)