flake8 fixes

This commit is contained in:
Robert Jacobson 2020-03-21 21:55:21 -04:00
parent 5ef679391f
commit bedaa1c962

View file

@ -6,10 +6,7 @@ import re
from .common import InfoExtractor from .common import InfoExtractor
from ..utils import ( from ..utils import (
clean_html, clean_html,
extract_attributes,
get_element_by_id, get_element_by_id,
get_element_by_attribute,
get_element_by_class,
) )
@ -57,8 +54,8 @@ class DigitalConcertHallIE(InfoExtractor):
# the div with id=key contains the video title # the div with id=key contains the video title
vid_info_div = clean_html(get_element_by_id(key, webpage)) vid_info_div = clean_html(get_element_by_id(key, webpage))
self.debug_out("vid_info_div:\n" + vid_info_div) self.debug_out("vid_info_div:\n" + vid_info_div)
title = re.sub('\s+', ' ', vid_info_div) title = re.sub(r'\s+', ' ', vid_info_div)
self.to_screen("title: " + title ) self.to_screen("title: " + title)
entries.append({ entries.append({
'id': key, 'id': key,
'title': title, 'title': title,