]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: don't inherit classes from object
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 4 May 2016 13:06:17 +0000 (16:06 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 May 2016 06:26:42 +0000 (07:26 +0100)
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]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/creator.py
scripts/lib/wic/imager/baseimager.py
scripts/lib/wic/ksparser.py
scripts/lib/wic/partition.py
scripts/lib/wic/plugin.py
scripts/lib/wic/utils/partitionedfs.py

index d0158fb62f6cfc7ff3c08ce7523db3fa070fd82a..d4972e889b3704e072c8a4f63d98a6a89bf6ed44 100644 (file)
@@ -24,7 +24,7 @@ from wic.conf import configmgr
 from wic.plugin import pluginmgr
 
 
-class Creator(object):
+class Creator():
     """${name}: create an image
 
     Usage:
index 557f5366770dda6dcc1333c6941d5abb48d6985f..463ae931367b43b38cebe060ca3f3d609b3fc063 100644 (file)
@@ -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
index 10d0d7c1155e6788127667557096944ded076003..27bc1c7ee40d882f0a1036fce41552b281f15602 100644 (file)
@@ -110,7 +110,7 @@ def systemidtype(arg):
 
     return arg
 
-class KickStart(object):
+class KickStart():
     """"Kickstart parser implementation."""
 
     def __init__(self, confpath):
index 6d21193902e6f9f70736a62f752aa0c67ed5b80b..34fd7d6a721372cadd71aca579ab339800ab0219 100644 (file)
@@ -38,7 +38,7 @@ partition_methods = {
     "do_configure_partition":None,
 }
 
-class Partition(object):
+class Partition():
 
     def __init__(self, args, lineno):
         self.args = args
index 933647d7c72b281dbba4e65e132a55043ae42dfe..83af9b05dfccb1f9427b083d42865354464e80e7 100644 (file)
@@ -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
index 89a7c13758887f1db5c2b53a37fa51c287c059cc..8f4db4e17d25390c876f74f59f83d8d085f11ec9 100644 (file)
@@ -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.