mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-20 13:24:16 -07:00
[utils] Avoid comparing type(var)
, etc, to pass new Linter rules
This commit is contained in:
parent
abef53466d
commit
7d965e6b65
2 changed files with 7 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue