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
This commit is contained in:
Ollie Tedder
2022-06-27 11:24:42 +01:00
committed by GitHub
parent 89a80f158e
commit 3c17b31d5e

View File

@ -33,6 +33,10 @@ from platformio.proc import exec_command
# 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):