Skip to content

Commit

Permalink
older dict combine for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
callumrollo committed Aug 8, 2023
1 parent 61e2455 commit 03f13b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erddapy/erddapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 03f13b8

Please sign in to comment.