From 63108b883593fe427a93c545f6ea6fb7060103e2 Mon Sep 17 00:00:00 2001 From: John Hawkinson Date: Tue, 7 Mar 2017 07:52:08 -0500 Subject: [PATCH] [brightcove:new] flake8 for PEP 8 I really reget not being able to use this compact syntax, as well as to align with spaces: if not account_id: account_id = attrs.get('data-account') if not player_id: player_id = attrs.get('data-player') if not embed: embed = attrs.get('data-embed') but it really upsets flake8: brightcove.py:519:30: E701 multiple statements on one line (colon) brightcove.py:519:42: E221 multiple spaces before operator brightcove.py:520:29: E701 multiple statements on one line (colon) brightcove.py:520:30: E241 multiple spaces after ':' brightcove.py:520:41: E221 multiple spaces before operator brightcove.py:521:25: E701 multiple statements on one line (colon) brightcove.py:521:26: E241 multiple spaces after ':' brightcove.py:521:37: E221 multiple spaces before operator --- youtube_dl/extractor/brightcove.py | 35 +++++++++++++++++------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index 9f63ab79c..31a947f4c 100644 --- a/youtube_dl/extractor/brightcove.py +++ b/youtube_dl/extractor/brightcove.py @@ -487,7 +487,7 @@ class BrightcoveNewIE(InfoExtractor): # 5. https://support.brightcove.com/en/video-cloud/docs/dynamically-assigning-videos-player # [1] looks like: - #