From b169903987beced69bdfa0f37f882b1bf1f41d27 Mon Sep 17 00:00:00 2001 From: Arjun Sreedharan Date: Sat, 26 Jul 2014 02:38:19 +0530 Subject: [PATCH] stick to Python's style guide best practice 'Programs must be written for people to read, and only incidentally for machines to execute.' (Harold Abelson) http://legacy.python.org/dev/peps/pep-0008/#programming-recommendations Signed-off-by: Arjun Sreedharan --- youtube_dl/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index f295174cf..776b03191 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -849,7 +849,7 @@ class YoutubeDL(object): # Keep for backwards compatibility info_dict['stitle'] = info_dict['title'] - if not 'format' in info_dict: + if 'format' not in info_dict: info_dict['format'] = info_dict['ext'] reason = self._match_entry(info_dict)