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/pluginbase.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/pluginbase.py')
-rw-r--r-- | scripts/lib/wic/pluginbase.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/wic/pluginbase.py b/scripts/lib/wic/pluginbase.py index 72bcad2b7a..50e442d61c 100644 --- a/scripts/lib/wic/pluginbase.py +++ b/scripts/lib/wic/pluginbase.py | |||
@@ -52,7 +52,7 @@ class SourcePlugin(_Plugin): | |||
52 | """ | 52 | """ |
53 | 53 | ||
54 | @classmethod | 54 | @classmethod |
55 | def do_install_disk(self, disk, disk_name, cr, workdir, oe_builddir, | 55 | def do_install_disk(cls, disk, disk_name, cr, workdir, oe_builddir, |
56 | bootimg_dir, kernel_dir, native_sysroot): | 56 | bootimg_dir, kernel_dir, native_sysroot): |
57 | """ | 57 | """ |
58 | Called after all partitions have been prepared and assembled into a | 58 | Called after all partitions have been prepared and assembled into a |
@@ -62,7 +62,7 @@ class SourcePlugin(_Plugin): | |||
62 | msger.debug("SourcePlugin: do_install_disk: disk: %s" % disk_name) | 62 | msger.debug("SourcePlugin: do_install_disk: disk: %s" % disk_name) |
63 | 63 | ||
64 | @classmethod | 64 | @classmethod |
65 | def do_stage_partition(self, part, source_params, cr, cr_workdir, | 65 | def do_stage_partition(cls, part, source_params, cr, cr_workdir, |
66 | oe_builddir, bootimg_dir, kernel_dir, | 66 | oe_builddir, bootimg_dir, kernel_dir, |
67 | native_sysroot): | 67 | native_sysroot): |
68 | """ | 68 | """ |
@@ -79,7 +79,7 @@ class SourcePlugin(_Plugin): | |||
79 | msger.debug("SourcePlugin: do_stage_partition: part: %s" % part) | 79 | msger.debug("SourcePlugin: do_stage_partition: part: %s" % part) |
80 | 80 | ||
81 | @classmethod | 81 | @classmethod |
82 | def do_configure_partition(self, part, source_params, cr, cr_workdir, | 82 | def do_configure_partition(cls, part, source_params, cr, cr_workdir, |
83 | oe_builddir, bootimg_dir, kernel_dir, | 83 | oe_builddir, bootimg_dir, kernel_dir, |
84 | native_sysroot): | 84 | native_sysroot): |
85 | """ | 85 | """ |
@@ -90,7 +90,7 @@ class SourcePlugin(_Plugin): | |||
90 | msger.debug("SourcePlugin: do_configure_partition: part: %s" % part) | 90 | msger.debug("SourcePlugin: do_configure_partition: part: %s" % part) |
91 | 91 | ||
92 | @classmethod | 92 | @classmethod |
93 | def do_prepare_partition(self, part, source_params, cr, cr_workdir, | 93 | def do_prepare_partition(cls, part, source_params, cr, cr_workdir, |
94 | oe_builddir, bootimg_dir, kernel_dir, rootfs_dir, | 94 | oe_builddir, bootimg_dir, kernel_dir, rootfs_dir, |
95 | native_sysroot): | 95 | native_sysroot): |
96 | """ | 96 | """ |