diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-12 01:39:26 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-12 05:32:50 +0530 |
commit | f9934b96145af8ac5dfdcbf684827aeaea9912a7 (patch) | |
tree | 0a00b551be555ed8aa70eac863cc83d335dc7b8a /yt_dlp/extractor/bbc.py | |
parent | cfb0511d822b39748c5a64dfe86b61ff8d5af176 (diff) | |
download | hypervideo-pre-f9934b96145af8ac5dfdcbf684827aeaea9912a7.tar.lz hypervideo-pre-f9934b96145af8ac5dfdcbf684827aeaea9912a7.tar.xz hypervideo-pre-f9934b96145af8ac5dfdcbf684827aeaea9912a7.zip |
[cleanup] Mark some compat variables for removal (#2173)
Authored by fstirlitz, pukkandan
Diffstat (limited to 'yt_dlp/extractor/bbc.py')
-rw-r--r-- | yt_dlp/extractor/bbc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/bbc.py b/yt_dlp/extractor/bbc.py index 29ad7ded7..5bc8d3110 100644 --- a/yt_dlp/extractor/bbc.py +++ b/yt_dlp/extractor/bbc.py @@ -1,6 +1,7 @@ # coding: utf-8 from __future__ import unicode_literals +import xml.etree.ElementTree import functools import itertools import json @@ -8,7 +9,6 @@ import re from .common import InfoExtractor from ..compat import ( - compat_etree_Element, compat_HTTPError, compat_str, compat_urllib_error, @@ -318,7 +318,7 @@ class BBCCoUkIE(InfoExtractor): continue captions = self._download_xml( cc_url, programme_id, 'Downloading captions', fatal=False) - if not isinstance(captions, compat_etree_Element): + if not isinstance(captions, xml.etree.ElementTree.Element): continue subtitles['en'] = [ { |