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/bootimg-pcbios.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/bootimg-pcbios.py')
| -rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py index 5caffbc8e2..ae5fc0ca2a 100644 --- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py | |||
| @@ -37,7 +37,7 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
| 37 | name = 'bootimg-pcbios' | 37 | name = 'bootimg-pcbios' |
| 38 | 38 | ||
| 39 | @classmethod | 39 | @classmethod |
| 40 | def do_install_disk(self, disk, disk_name, cr, workdir, oe_builddir, | 40 | def do_install_disk(cls, disk, disk_name, cr, workdir, oe_builddir, |
| 41 | bootimg_dir, kernel_dir, native_sysroot): | 41 | bootimg_dir, kernel_dir, native_sysroot): |
| 42 | """ | 42 | """ |
| 43 | Called after all partitions have been prepared and assembled into a | 43 | Called after all partitions have been prepared and assembled into a |
| @@ -64,7 +64,7 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
| 64 | raise ImageError("Unable to set MBR to %s" % full_path) | 64 | raise ImageError("Unable to set MBR to %s" % full_path) |
| 65 | 65 | ||
| 66 | @classmethod | 66 | @classmethod |
| 67 | def do_configure_partition(self, part, source_params, cr, cr_workdir, | 67 | def do_configure_partition(cls, part, source_params, cr, cr_workdir, |
| 68 | oe_builddir, bootimg_dir, kernel_dir, | 68 | oe_builddir, bootimg_dir, kernel_dir, |
| 69 | native_sysroot): | 69 | native_sysroot): |
| 70 | """ | 70 | """ |
| @@ -113,7 +113,7 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
| 113 | cfg.close() | 113 | cfg.close() |
| 114 | 114 | ||
| 115 | @classmethod | 115 | @classmethod |
| 116 | def do_prepare_partition(self, part, source_params, cr, cr_workdir, | 116 | def do_prepare_partition(cls, part, source_params, cr, cr_workdir, |
| 117 | oe_builddir, bootimg_dir, kernel_dir, | 117 | oe_builddir, bootimg_dir, kernel_dir, |
| 118 | rootfs_dir, native_sysroot): | 118 | rootfs_dir, native_sysroot): |
| 119 | """ | 119 | """ |
