diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-02 13:12:53 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 11:47:43 +0100 |
commit | 067a2156f36a12c731d49f88cf9d0b0bab7a0dcb (patch) | |
tree | 075ff9e361bc5762e98342bdc02bfe8ccd7df344 /scripts | |
parent | 77ae2daad5d775d710b953cf0c623ce74cb2c274 (diff) | |
download | openembedded-core-067a2156f36a12c731d49f88cf9d0b0bab7a0dcb.tar.gz openembedded-core-067a2156f36a12c731d49f88cf9d0b0bab7a0dcb.tar.bz2 openembedded-core-067a2156f36a12c731d49f88cf9d0b0bab7a0dcb.zip |
scripts: python3: use new metaclass syntax
Used metaclass=<metaclass> syntax instead old
__metaclass__ = <metaclass> as only new one is supported
in python 3.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test-remote-image | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/test-remote-image b/scripts/test-remote-image index 7a00db92c0..698948b834 100755 --- a/scripts/test-remote-image +++ b/scripts/test-remote-image @@ -92,13 +92,11 @@ def get_args_parser(): parser.add_argument('--skip-download', required=False, action="store_true", dest="skip_download", default=False, help='Skip downloading the images completely. This needs the correct files to be present in the directory specified by the target profile.') return parser -class BaseTargetProfile(object): +class BaseTargetProfile(object, metaclass=ABCMeta): """ This class defines the meta profile for a specific target (MACHINE type + image type). """ - __metaclass__ = ABCMeta - def __init__(self, image_type): self.image_type = image_type @@ -191,13 +189,11 @@ class AutoTargetProfile(BaseTargetProfile): return controller.get_extra_files() -class BaseRepoProfile(object): +class BaseRepoProfile(object, metaclass=ABCMeta): """ This class defines the meta profile for an images repository. """ - __metaclass__ = ABCMeta - def __init__(self, repolink, localdir): self.localdir = localdir self.repolink = repolink |