diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-02 17:02:03 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-11 23:59:10 +0100 |
commit | 9682d8f21e450c8f9e8bfa0a4077e14ef5d467da (patch) | |
tree | 56834880d3b6cdc5211376366c33f5d7d1d2f03f /scripts/lib/wic/plugins/source/bootimg-efi.py | |
parent | 179fb20603b31708226649c860d60dc6fa427b11 (diff) | |
download | poky-9682d8f21e450c8f9e8bfa0a4077e14ef5d467da.tar.gz |
wic: Make _ptable_format public
Names with one leasding underscore considered protected in Python.
_ptable_format is accessed outside of its class.
Made it public by removing underscore.
This pylint warning should be fixed now:
Access to a protected member _ptable_format of a client class
(From OE-Core rev: 72599b5500ebdd0c418a0ef1e2c93c833bd31d75)
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py index 22c7b0a33e..400e3a2df8 100644 --- a/scripts/lib/wic/plugins/source/bootimg-efi.py +++ b/scripts/lib/wic/plugins/source/bootimg-efi.py | |||
@@ -61,7 +61,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
61 | 61 | ||
62 | kernel = "/bzImage" | 62 | kernel = "/bzImage" |
63 | 63 | ||
64 | if cr._ptable_format in ('msdos', 'gpt'): | 64 | if cr.ptable_format in ('msdos', 'gpt'): |
65 | rootstr = rootdev | 65 | rootstr = rootdev |
66 | else: | 66 | else: |
67 | raise ImageError("Unsupported partition table format found") | 67 | raise ImageError("Unsupported partition table format found") |
@@ -106,7 +106,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
106 | 106 | ||
107 | kernel = "/bzImage" | 107 | kernel = "/bzImage" |
108 | 108 | ||
109 | if cr._ptable_format in ('msdos', 'gpt'): | 109 | if cr.ptable_format in ('msdos', 'gpt'): |
110 | rootstr = rootdev | 110 | rootstr = rootdev |
111 | else: | 111 | else: |
112 | raise ImageError("Unsupported partition table format found") | 112 | raise ImageError("Unsupported partition table format found") |