mirror of
https://git.yoctoproject.org/poky
synced 2026-06-13 17:10:01 +00:00
wic: Code cleanup: bad-classmethod-argument
Fixed wrong name for the first argument in class methods.
Pylint complains about the issue this way:
Class method should have 'cls' as first argument
(From OE-Core rev: cd7c72d6d5a5110173d0d3f60f2991b1dc30fc26)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9286213688
commit
553f332265
@@ -52,7 +52,7 @@ class SourcePlugin(_Plugin):
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def do_install_disk(self, disk, disk_name, cr, workdir, oe_builddir,
|
||||
def do_install_disk(cls, disk, disk_name, cr, workdir, oe_builddir,
|
||||
bootimg_dir, kernel_dir, native_sysroot):
|
||||
"""
|
||||
Called after all partitions have been prepared and assembled into a
|
||||
@@ -62,7 +62,7 @@ class SourcePlugin(_Plugin):
|
||||
msger.debug("SourcePlugin: do_install_disk: disk: %s" % disk_name)
|
||||
|
||||
@classmethod
|
||||
def do_stage_partition(self, part, source_params, cr, cr_workdir,
|
||||
def do_stage_partition(cls, part, source_params, cr, cr_workdir,
|
||||
oe_builddir, bootimg_dir, kernel_dir,
|
||||
native_sysroot):
|
||||
"""
|
||||
@@ -79,7 +79,7 @@ class SourcePlugin(_Plugin):
|
||||
msger.debug("SourcePlugin: do_stage_partition: part: %s" % part)
|
||||
|
||||
@classmethod
|
||||
def do_configure_partition(self, part, source_params, cr, cr_workdir,
|
||||
def do_configure_partition(cls, part, source_params, cr, cr_workdir,
|
||||
oe_builddir, bootimg_dir, kernel_dir,
|
||||
native_sysroot):
|
||||
"""
|
||||
@@ -90,7 +90,7 @@ class SourcePlugin(_Plugin):
|
||||
msger.debug("SourcePlugin: do_configure_partition: part: %s" % part)
|
||||
|
||||
@classmethod
|
||||
def do_prepare_partition(self, part, source_params, cr, cr_workdir,
|
||||
def do_prepare_partition(cls, part, source_params, cr, cr_workdir,
|
||||
oe_builddir, bootimg_dir, kernel_dir, rootfs_dir,
|
||||
native_sysroot):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user