Coding standard: use compat_str

This commit is contained in:
Tim Mann 2021-03-08 12:03:50 -08:00
parent cec9f4bf3c
commit d4512dfd52

View File

@ -1,11 +1,8 @@
# coding: utf-8
from __future__ import unicode_literals
try:
unicode
except NameError:
unicode = str
from .common import InfoExtractor
from ..compat import compat_str
class Pac12IE(InfoExtractor):
@ -65,7 +62,7 @@ class Pac12IE(InfoExtractor):
return {
# cv['id'] might be an integer, string, or missing.
'id': unicode(cv.get('id') or video_id),
'id': compat_str(cv.get('id') or video_id),
'title': (cv.get('title')
or self._html_search_meta(
['og:title', 'twitter:title',