Tools: fix flake8 test

This commit is contained in:
Pierre Kancir 2023-09-04 14:18:03 +02:00 committed by Andrew Tridgell
parent d620a1905a
commit c96294867a
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ def start_SITL(binary,
cmd.append("--disable-fgview")
if defaults_filepath is not None:
if type(defaults_filepath) == list:
if isinstance(defaults_filepath, list):
defaults = [reltopdir(path) for path in defaults_filepath]
if len(defaults):
cmd.extend(['--defaults', ",".join(defaults)])