[cleanup] Lint and misc cleanup

This commit is contained in:
pukkandan
2022-11-07 02:29:58 +05:30
parent db4678e448
commit 46d09f8707
11 changed files with 46 additions and 43 deletions

View File

@@ -68,7 +68,7 @@ class ManyVidsIE(InfoExtractor):
)
def txt_or_none(s, default=None):
return (s.strip() or default) if isinstance(s, compat_str) else default
return (s.strip() or default) if isinstance(s, str) else default
uploader = txt_or_none(info.get('data-meta-author'))