Fix W504 and disable W503 (closes #20863)
[youtube-dl] / youtube_dl / compat.py
index 7992a23ca92eaf95eddeb1c3217821ce058e8444..c75ab131b9955cec1367ec42aa41d8dadde423da 100644 (file)
@@ -2649,9 +2649,9 @@ else:
 
 try:
     args = shlex.split('中文')
-    assert (isinstance(args, list) and
-            isinstance(args[0], compat_str) and
-            args[0] == '中文')
+    assert (isinstance(args, list)
+            and isinstance(args[0], compat_str)
+            and args[0] == '中文')
     compat_shlex_split = shlex.split
 except (AssertionError, UnicodeEncodeError):
     # Working around shlex issue with unicode strings on some python 2