mirror of
https://github.com/beetbox/beets.git
synced 2026-01-13 19:52:48 +01:00
Prefer isinstance over type/is
This commit is contained in:
parent
7f7db33cf8
commit
5602e9aaa8
1 changed files with 1 additions and 1 deletions
|
|
@ -1363,7 +1363,7 @@ def _freshen_items(items):
|
|||
|
||||
def _extend_pipeline(tasks, *stages):
|
||||
# Return pipeline extension for stages with list of tasks
|
||||
if type(tasks) is list:
|
||||
if isinstance(tasks, list):
|
||||
task_iter = iter(tasks)
|
||||
else:
|
||||
task_iter = tasks
|
||||
|
|
|
|||
Loading…
Reference in a new issue