wic: don't inherit classes from object
All classes in Python3 are new style classes and don't need to be inherited from object. Wic code works fine without this inheritance even with Python2, so it's harmless to remove it. [YOCTO #9412] (From OE-Core rev: a146b03ee7d0aa5bc1722da5977a5952782b69bf) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
52ce79dcba
commit
dac0e809b7
|
@ -24,7 +24,7 @@ from wic.conf import configmgr
|
|||
from wic.plugin import pluginmgr
|
||||
|
||||
|
||||
class Creator(object):
|
||||
class Creator():
|
||||
"""${name}: create an image
|
||||
|
||||
Usage:
|
||||
|
|
|
@ -25,7 +25,7 @@ from wic import msger
|
|||
from wic.utils.errors import CreatorError
|
||||
from wic.utils import runner
|
||||
|
||||
class BaseImageCreator(object):
|
||||
class BaseImageCreator():
|
||||
"""Base class for image creation.
|
||||
|
||||
BaseImageCreator is the simplest creator class available; it will
|
||||
|
|
|
@ -110,7 +110,7 @@ def systemidtype(arg):
|
|||
|
||||
return arg
|
||||
|
||||
class KickStart(object):
|
||||
class KickStart():
|
||||
""""Kickstart parser implementation."""
|
||||
|
||||
def __init__(self, confpath):
|
||||
|
|
|
@ -38,7 +38,7 @@ partition_methods = {
|
|||
"do_configure_partition":None,
|
||||
}
|
||||
|
||||
class Partition(object):
|
||||
class Partition():
|
||||
|
||||
def __init__(self, args, lineno):
|
||||
self.args = args
|
||||
|
|
|
@ -29,7 +29,7 @@ PLUGIN_TYPES = ["imager", "source"]
|
|||
PLUGIN_DIR = "/lib/wic/plugins" # relative to scripts
|
||||
SCRIPTS_PLUGIN_DIR = "scripts" + PLUGIN_DIR
|
||||
|
||||
class PluginMgr(object):
|
||||
class PluginMgr():
|
||||
plugin_dirs = {}
|
||||
|
||||
# make the manager class as singleton
|
||||
|
|
|
@ -33,7 +33,7 @@ GPT_OVERHEAD = 34
|
|||
# Size of a sector in bytes
|
||||
SECTOR_SIZE = 512
|
||||
|
||||
class Image(object):
|
||||
class Image():
|
||||
"""
|
||||
Generic base object for an image.
|
||||
|
||||
|
|
Loading…
Reference in New Issue