From 8c8a1c095640ce2b0cf406ae3d8a429f511e2e24 Mon Sep 17 00:00:00 2001 From: bato3 Date: Tue, 31 Jul 2018 18:28:40 +0200 Subject: [PATCH] `_` -> `urlh` --- youtube_dl/extractor/common.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index b0892018c..c32ce8e04 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -768,8 +768,8 @@ class InfoExtractor(object): if res is False: return res else: - content, _ = res - _.close() + content, urlh = res + urlh.close() return content def _download_xml_handle( @@ -811,8 +811,8 @@ class InfoExtractor(object): if res is False: return res else: - content, _ = res - _.close() + content, urlh = res + urlh.close() return content def _parse_xml(self, xml_string, video_id, transform_source=None, fatal=True): @@ -866,8 +866,8 @@ class InfoExtractor(object): if res is False: return res else: - content, _ = res - _.close() + content, urlh = res + urlh.close() return content def _parse_json(self, json_string, video_id, transform_source=None, fatal=True):