There's no need to inherit from object in Python 3, and marking the methods as abstract is overkill considering the type hierarchy.
Signed-off-by: Ross Burton <ross.bur...@arm.com> --- meta/lib/oeqa/core/target/__init__.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/meta/lib/oeqa/core/target/__init__.py b/meta/lib/oeqa/core/target/__init__.py index 1382aa9b523..3da66038342 100644 --- a/meta/lib/oeqa/core/target/__init__.py +++ b/meta/lib/oeqa/core/target/__init__.py @@ -4,33 +4,26 @@ # SPDX-License-Identifier: MIT # -from abc import abstractmethod -class OETarget(object): +class OETarget: def __init__(self, logger, *args, **kwargs): self.logger = logger - @abstractmethod def start(self): pass - @abstractmethod def stop(self): pass - @abstractmethod def run(self, cmd, timeout=None): pass - @abstractmethod def copyTo(self, localSrc, remoteDst): pass - @abstractmethod def copyFrom(self, remoteSrc, localDst): pass - @abstractmethod def copyDirTo(self, localSrc, remoteDst): pass -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#155904): https://lists.openembedded.org/g/openembedded-core/message/155904 Mute This Topic: https://lists.openembedded.org/mt/85506108/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-