From a2df5bdae175784182ae9b1da15339211d142d10 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 cbda4891508..fc29a47013f 100644 --- a/xarray/backends/pydap_.py +++ b/xarray/backends/pydap_.py @@ -113,12 +113,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)