From 09d9ae1b56cfb1dbaa625cbcaef24eefb0166127 Mon Sep 17 00:00:00 2001 From: Baudouin Raoult Date: Sat, 9 Jun 2018 18:31:17 +0800 Subject: login --- cdsapi/api.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cdsapi') diff --git a/cdsapi/api.py b/cdsapi/api.py index c942612..662dec9 100644 --- a/cdsapi/api.py +++ b/cdsapi/api.py @@ -104,11 +104,6 @@ class Result(object): self.content_type, self.location) - def __enter__(self): - - r = self.robust(requests.get)(self.location, stream=True, verify=self.verify) - r.raise_for_status() - def check(self): self.debug("HEAD %s", self.reply['location']) metadata = self.robust(self.session.head)(self.reply['location'], -- cgit v1.2.3