From 3c17b31d5e402d2b4456550381c54b1dc06083e8 Mon Sep 17 00:00:00 2001 From: Ollie Tedder Date: Mon, 27 Jun 2022 11:24:42 +0100 Subject: [PATCH] Export twice to maintain backward compatability (#4333) * Export twice to maintain backward compattability * Removed double import and just use another variable (after running make before-commit) * Improve comment --- platformio/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platformio/util.py b/platformio/util.py index 56e95d2f4e..45af8b125a 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -33,6 +33,10 @@ # pylint: enable=unused-import +# also export list_serial_ports as get_serialports to be +# backward compatiblty with arduinosam versions 3.9.0 to 3.5.0 (and possibly others) +get_serialports = get_serial_ports + class memoized(object): def __init__(self, expire=0):