diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-17 14:25:23 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-23 11:47:32 +0100 |
commit | 553f3322650235ff267627504bd49c3d04c1f39c (patch) | |
tree | a3a900e4ea82040c5cd0b88d1e733480d13009eb /scripts/lib/wic/plugins/source/rootfs.py | |
parent | 928621368830aae4423cfcfb1bb3990b6ca83f13 (diff) | |
download | poky-553f3322650235ff267627504bd49c3d04c1f39c.tar.gz |
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>
Diffstat (limited to 'scripts/lib/wic/plugins/source/rootfs.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/rootfs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py index 7d444301fb..0ee383efb7 100644 --- a/scripts/lib/wic/plugins/source/rootfs.py +++ b/scripts/lib/wic/plugins/source/rootfs.py | |||
@@ -54,7 +54,7 @@ class RootfsPlugin(SourcePlugin): | |||
54 | return image_rootfs_dir | 54 | return image_rootfs_dir |
55 | 55 | ||
56 | @classmethod | 56 | @classmethod |
57 | def do_prepare_partition(self, part, source_params, cr, cr_workdir, | 57 | def do_prepare_partition(cls, part, source_params, cr, cr_workdir, |
58 | oe_builddir, bootimg_dir, kernel_dir, | 58 | oe_builddir, bootimg_dir, kernel_dir, |
59 | krootfs_dir, native_sysroot): | 59 | krootfs_dir, native_sysroot): |
60 | """ | 60 | """ |
@@ -77,7 +77,7 @@ class RootfsPlugin(SourcePlugin): | |||
77 | msg += " or it is not a valid path, exiting" | 77 | msg += " or it is not a valid path, exiting" |
78 | msger.error(msg % part.rootfs) | 78 | msger.error(msg % part.rootfs) |
79 | 79 | ||
80 | real_rootfs_dir = self.__get_rootfs_dir(rootfs_dir) | 80 | real_rootfs_dir = cls.__get_rootfs_dir(rootfs_dir) |
81 | 81 | ||
82 | part.set_rootfs(real_rootfs_dir) | 82 | part.set_rootfs(real_rootfs_dir) |
83 | part.prepare_rootfs(cr_workdir, oe_builddir, real_rootfs_dir, native_sysroot) | 83 | part.prepare_rootfs(cr_workdir, oe_builddir, real_rootfs_dir, native_sysroot) |