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:
Ed Bartosh
2015-06-17 14:25:23 +03:00
committed by Richard Purdie
parent 9286213688
commit 553f332265
8 changed files with 27 additions and 27 deletions

View File

@@ -54,7 +54,7 @@ class RootfsPlugin(SourcePlugin):
return image_rootfs_dir
@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,
krootfs_dir, native_sysroot):
"""
@@ -77,7 +77,7 @@ class RootfsPlugin(SourcePlugin):
msg += " or it is not a valid path, exiting"
msger.error(msg % part.rootfs)
real_rootfs_dir = self.__get_rootfs_dir(rootfs_dir)
real_rootfs_dir = cls.__get_rootfs_dir(rootfs_dir)
part.set_rootfs(real_rootfs_dir)
part.prepare_rootfs(cr_workdir, oe_builddir, real_rootfs_dir, native_sysroot)