diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8ccb5ba --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,6 @@ +python37: + image: python:3.7 + before_script: + - make -e install-dev + script: + - make -e ci-test 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)