Skip to content

Commit

Permalink
use pydap's defaults
Browse files Browse the repository at this point in the history
Co-authored-by: Deepak Cherian <[email protected]>
  • Loading branch information
observingClouds and dcherian committed Jun 8, 2022
1 parent 8e568cb commit 218b26e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions xarray/backends/pydap_.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,10 @@ def open(
"timeout": timeout,
}
if Version(pydap_version) >= Version("3.3.0"):
kwargs.update(
{
"verify": verify if verify is not None else True,
"user_charset": user_charset or "ascii",
}
)
if verify is not None:
kwargs.update({"verify": verify})
if user_charset is not None:
kwargs.update({"user_charset": user_charset})
ds = pydap.client.open_url(**kwargs)
return cls(ds)

Expand Down

0 comments on commit 218b26e

Please sign in to comment.