From 218b26e629822bb26a79a1d758fe42c24033dcb3 Mon Sep 17 00:00:00 2001 From: Hauke Schulz <43613877+observingClouds@users.noreply.github.com> Date: Sat, 4 Jun 2022 00:00:39 +0200 Subject: [PATCH] use pydap's defaults Co-authored-by: Deepak Cherian --- xarray/backends/pydap_.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/xarray/backends/pydap_.py b/xarray/backends/pydap_.py index 2accaeeb0e2..b9c35d171c3 100644 --- a/xarray/backends/pydap_.py +++ b/xarray/backends/pydap_.py @@ -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)