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/imager | |
| 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/imager')
| -rw-r--r-- | scripts/lib/wic/plugins/imager/direct_plugin.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct_plugin.py b/scripts/lib/wic/plugins/imager/direct_plugin.py index 17888e971c..1720f7bb20 100644 --- a/scripts/lib/wic/plugins/imager/direct_plugin.py +++ b/scripts/lib/wic/plugins/imager/direct_plugin.py | |||
| @@ -36,7 +36,7 @@ class DirectPlugin(ImagerPlugin): | |||
| 36 | name = 'direct' | 36 | name = 'direct' |
| 37 | 37 | ||
| 38 | @classmethod | 38 | @classmethod |
| 39 | def __rootfs_dir_to_dict(self, rootfs_dirs): | 39 | def __rootfs_dir_to_dict(cls, rootfs_dirs): |
| 40 | """ | 40 | """ |
| 41 | Gets a string that contain 'connection=dir' splitted by | 41 | Gets a string that contain 'connection=dir' splitted by |
| 42 | space and return a dict | 42 | space and return a dict |
| @@ -49,7 +49,7 @@ class DirectPlugin(ImagerPlugin): | |||
| 49 | return krootfs_dir | 49 | return krootfs_dir |
| 50 | 50 | ||
| 51 | @classmethod | 51 | @classmethod |
| 52 | def do_create(self, subcmd, opts, *args): | 52 | def do_create(cls, subcmd, opts, *args): |
| 53 | """ | 53 | """ |
| 54 | Create direct image, called from creator as 'direct' cmd | 54 | Create direct image, called from creator as 'direct' cmd |
| 55 | """ | 55 | """ |
| @@ -67,7 +67,7 @@ class DirectPlugin(ImagerPlugin): | |||
| 67 | image_output_dir = args[5] | 67 | image_output_dir = args[5] |
| 68 | oe_builddir = args[6] | 68 | oe_builddir = args[6] |
| 69 | 69 | ||
| 70 | krootfs_dir = self.__rootfs_dir_to_dict(rootfs_dir) | 70 | krootfs_dir = cls.__rootfs_dir_to_dict(rootfs_dir) |
| 71 | 71 | ||
| 72 | configmgr._ksconf = ksconf | 72 | configmgr._ksconf = ksconf |
| 73 | 73 | ||
