Skip to content

Commit

Permalink
Export twice to maintain backward compatability (#4333)
Browse files Browse the repository at this point in the history
* Export twice to maintain backward compattability

* Removed double import and just use another variable (after running make before-commit)

* Improve comment
  • Loading branch information
ollie1400 authored Jun 27, 2022
1 parent 89a80f1 commit 3c17b31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platformio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3c17b31

Please sign in to comment.