mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Minor fix
This commit is contained in:
@ -108,7 +108,7 @@ def ensure_udev_rules():
|
|||||||
|
|
||||||
|
|
||||||
def path_endswith_ext(path, extensions):
|
def path_endswith_ext(path, extensions):
|
||||||
if not isinstance(extensions, list):
|
if not isinstance(extensions, (list, tuple)):
|
||||||
extensions = [extensions]
|
extensions = [extensions]
|
||||||
for ext in extensions:
|
for ext in extensions:
|
||||||
if path.endswith("." + ext):
|
if path.endswith("." + ext):
|
||||||
|
Reference in New Issue
Block a user