From ad49e65d1ecf3150c733e329344ba42f9e95ba91 Mon Sep 17 00:00:00 2001 From: Tim Mann Date: Sat, 13 Feb 2021 12:44:54 -0800 Subject: [PATCH] Cleanup after running flake8 again. --- youtube_dl/extractor/pac12.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/pac12.py b/youtube_dl/extractor/pac12.py index 8b46bdc95..534261e15 100644 --- a/youtube_dl/extractor/pac12.py +++ b/youtube_dl/extractor/pac12.py @@ -49,10 +49,10 @@ class Pac12IE(InfoExtractor): title = self._html_search_regex(r'(.+?)', webpage, 'title') description = self._og_search_description(webpage, default=None) - if description == None: + if description is None: d = self._search_regex(r'"description":"(?P[^"]+)"', webpage, 'description', default=None) - if d != None: + if d is not None: description = d.encode('utf-8').decode('unicode_escape') return { 'id': video_id,