From 208602d96351fe6acf0329f9066f1eb4885d42c5 Mon Sep 17 00:00:00 2001 From: "anatoly@nspcc.ru" Date: Fri, 4 Dec 2020 15:32:29 +0300 Subject: [PATCH] fix comments --- robot/resources/lib/gates.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/robot/resources/lib/gates.py b/robot/resources/lib/gates.py index 88a835c..fd09842 100644 --- a/robot/resources/lib/gates.py +++ b/robot/resources/lib/gates.py @@ -43,11 +43,4 @@ def get_via_http_gate(cid: str, oid: str): with open(filename, "wb") as f: shutil.copyfileobj(resp.raw, f) del resp - return filename - - -#url = 'http://example.com/img.png' -#response = requests.get(url, stream=True) -#with open('img.png', 'wb') as out_file: -# shutil.copyfileobj(response.raw, out_file) -#del response \ No newline at end of file + return filename \ No newline at end of file