From 03f13b82d88e429446966e2bf784c419701fc230 Mon Sep 17 00:00:00 2001 From: Callum Rollo Date: Tue, 8 Aug 2023 17:31:43 +0200 Subject: [PATCH] older dict combine for python 3.8 --- erddapy/erddapy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erddapy/erddapy.py b/erddapy/erddapy.py index f894eb3..ed73a03 100644 --- a/erddapy/erddapy.py +++ b/erddapy/erddapy.py @@ -386,7 +386,7 @@ def to_xarray( distinct = kw.pop("distinct", False) url = self.get_download_url(response=response, distinct=distinct) if requests_kwargs: - requests_kwargs = {"auth": self.auth} | requests_kwargs + requests_kwargs = {**{"auth": self.auth}, **requests_kwargs} else: requests_kwargs = {"auth": self.auth} return to_xarray(url, response, requests_kwargs, xarray_kwargs=dict(**kw))