Skip to content

Commit 83c8dfb

Browse files
Remove dependency on future
1 parent 4432441 commit 83c8dfb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/test_building_multiple_executables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
python3 -m pip install -e ./tools
1818
1919
# Remove mbed-tools package that comes with the docker image, it conflicts with the one we want to install
20-
python3 -m pip uninstall mbed-tools
20+
python3 -m pip uninstall -y mbed-tools
2121
2222
# Note: For this CI job we use MBED_CREATE_PYTHON_VENV=FALSE so that we can make sure
2323
# this mode works.

tools/python/mbed_os_tools/detect/lstools_base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515

1616
import re
17-
from abc import ABCMeta, abstractmethod
17+
from abc import ABC, abstractmethod
1818
from io import open
1919
from json import load
2020
from os import listdir
@@ -28,7 +28,6 @@
2828
LOCAL_PLATFORM_DATABASE,
2929
LOCAL_MOCKS_DATABASE,
3030
)
31-
from future.utils import with_metaclass
3231

3332
mbedls_root_logger = logging.getLogger("mbedls")
3433
mbedls_root_logger.setLevel(logging.WARNING)
@@ -57,7 +56,7 @@ class FSInteraction(object):
5756
Never = 3
5857

5958

60-
class MbedLsToolsBase(with_metaclass(ABCMeta, object)):
59+
class MbedLsToolsBase(ABC):
6160
""" Base class for mbed-lstools, defines mbed-ls tools interface for
6261
mbed-enabled devices detection for various hosts
6362
"""

0 commit comments

Comments
 (0)