old_contents: # Copyright (c) 2014-present PlatformIO <contact@platformio.org>
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #    http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  
  # pylint: disable=unused-import
  
  from platformio.device.list.util import list_serial_ports
  from platformio.device.monitor.filters.base import DeviceMonitorFilterBase
  from platformio.fs import to_unix_path
  from platformio.platform.base import PlatformBase
  from platformio.project.config import ProjectConfig
  from platformio.project.helpers import get_project_watch_lib_dirs, load_build_metadata
  from platformio.test.result import TestCase, TestCaseSource, TestStatus
  from platformio.test.runners.base import TestRunnerBase
  from platformio.test.runners.doctest import DoctestTestCaseParser
  from platformio.test.runners.googletest import GoogletestTestRunner
  from platformio.test.runners.unity import UnityTestRunner
  from platformio.util import get_systype
  
new_contents: # Copyright (c) 2014-present PlatformIO <contact@platformio.org>
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #    http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  
  # pylint: disable=unused-import
  
  from platformio.device.list.util import list_logical_devices, list_serial_ports
  from platformio.device.monitor.filters.base import DeviceMonitorFilterBase
  from platformio.fs import to_unix_path
  from platformio.platform.base import PlatformBase
  from platformio.project.config import ProjectConfig
  from platformio.project.helpers import get_project_watch_lib_dirs, load_build_metadata
  from platformio.test.result import TestCase, TestCaseSource, TestStatus
  from platformio.test.runners.base import TestRunnerBase
  from platformio.test.runners.doctest import DoctestTestCaseParser
  from platformio.test.runners.googletest import GoogletestTestRunner
  from platformio.test.runners.unity import UnityTestRunner
  from platformio.util import get_systype
  
subject: Add list_logical_devices to public (#4450)