From d4512dfd52a2f224d35818fe8f1875bf75f8af29 Mon Sep 17 00:00:00 2001 From: Tim Mann Date: Mon, 8 Mar 2021 12:03:50 -0800 Subject: [PATCH] Coding standard: use compat_str --- youtube_dl/extractor/pac12.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/pac12.py b/youtube_dl/extractor/pac12.py index 80a5ca18f..5f6f1692c 100644 --- a/youtube_dl/extractor/pac12.py +++ b/youtube_dl/extractor/pac12.py @@ -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',