Fix all PEP8 issues except E501
[youtube-dl] / youtube_dl / __init__.py
index 427b6ad27c4dd11c768424fbaf0ceae158acabd9..77b3384a05fa45d6d4cada65decdb5588ade9100 100644 (file)
@@ -189,7 +189,7 @@ def _real_main(argv=None):
 
     # --all-sub automatically sets --write-sub if --write-auto-sub is not given
     # this was the old behaviour if only --all-sub was given.
-    if opts.allsubtitles and (opts.writeautomaticsub == False):
+    if opts.allsubtitles and not opts.writeautomaticsub:
         opts.writesubtitles = True
 
     if sys.version_info < (3,):