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-efi.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-efi.py')
| -rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-efi.py | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index d3b8468c7b..f50f631313 100644 --- a/scripts/lib/wic/plugins/source/bootimg-efi.py +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py | |||
| @@ -37,7 +37,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 37 | name = 'bootimg-efi' | 37 | name = 'bootimg-efi' | 
| 38 | 38 | ||
| 39 | @classmethod | 39 | @classmethod | 
| 40 | def do_configure_grubefi(self, hdddir, cr, cr_workdir): | 40 | def do_configure_grubefi(cls, hdddir, cr, cr_workdir): | 
| 41 | """ | 41 | """ | 
| 42 | Create loader-specific (grub-efi) config | 42 | Create loader-specific (grub-efi) config | 
| 43 | """ | 43 | """ | 
| @@ -71,7 +71,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 71 | cfg.close() | 71 | cfg.close() | 
| 72 | 72 | ||
| 73 | @classmethod | 73 | @classmethod | 
| 74 | def do_configure_gummiboot(self, hdddir, cr, cr_workdir): | 74 | def do_configure_gummiboot(cls, hdddir, cr, cr_workdir): | 
| 75 | """ | 75 | """ | 
| 76 | Create loader-specific (gummiboot) config | 76 | Create loader-specific (gummiboot) config | 
| 77 | """ | 77 | """ | 
| @@ -112,7 +112,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 112 | 112 | ||
| 113 | 113 | ||
| 114 | @classmethod | 114 | @classmethod | 
| 115 | def do_configure_partition(self, part, source_params, cr, cr_workdir, | 115 | def do_configure_partition(cls, part, source_params, cr, cr_workdir, | 
| 116 | oe_builddir, bootimg_dir, kernel_dir, | 116 | oe_builddir, bootimg_dir, kernel_dir, | 
| 117 | native_sysroot): | 117 | native_sysroot): | 
| 118 | """ | 118 | """ | 
| @@ -127,9 +127,9 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 127 | 127 | ||
| 128 | try: | 128 | try: | 
| 129 | if source_params['loader'] == 'grub-efi': | 129 | if source_params['loader'] == 'grub-efi': | 
| 130 | self.do_configure_grubefi(hdddir, cr, cr_workdir) | 130 | cls.do_configure_grubefi(hdddir, cr, cr_workdir) | 
| 131 | elif source_params['loader'] == 'gummiboot': | 131 | elif source_params['loader'] == 'gummiboot': | 
| 132 | self.do_configure_gummiboot(hdddir, cr, cr_workdir) | 132 | cls.do_configure_gummiboot(hdddir, cr, cr_workdir) | 
| 133 | else: | 133 | else: | 
| 134 | msger.error("unrecognized bootimg-efi loader: %s" % source_params['loader']) | 134 | msger.error("unrecognized bootimg-efi loader: %s" % source_params['loader']) | 
| 135 | except KeyError: | 135 | except KeyError: | 
| @@ -137,7 +137,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 137 | 137 | ||
| 138 | 138 | ||
| 139 | @classmethod | 139 | @classmethod | 
| 140 | def do_prepare_partition(self, part, source_params, cr, cr_workdir, | 140 | def do_prepare_partition(cls, part, source_params, cr, cr_workdir, | 
| 141 | oe_builddir, bootimg_dir, kernel_dir, | 141 | oe_builddir, bootimg_dir, kernel_dir, | 
| 142 | rootfs_dir, native_sysroot): | 142 | rootfs_dir, native_sysroot): | 
| 143 | """ | 143 | """ | 
