From 7d965e6b65655f2a5fbae34219fc87359a3d7061 Mon Sep 17 00:00:00 2001 From: dirkf Date: Sun, 30 Jul 2023 21:45:57 +0100 Subject: [utils] Avoid comparing `type(var)`, etc, to pass new Linter rules --- youtube_dl/swfinterp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube_dl/swfinterp.py') diff --git a/youtube_dl/swfinterp.py b/youtube_dl/swfinterp.py index 0c7158575..e79e0b17f 100644 --- a/youtube_dl/swfinterp.py +++ b/youtube_dl/swfinterp.py @@ -727,7 +727,7 @@ class SWFInterpreter(object): stack.append(res) continue - assert isinstance(obj, (dict, _ScopeDict)),\ + assert isinstance(obj, (dict, _ScopeDict)), \ 'Accessing member %r on %r' % (pname, obj) res = obj.get(pname, undefined) stack.append(res) -- cgit 1.4.1