summaryrefslogtreecommitdiff
path: root/scripts/lib/wic/imager
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-02 17:02:03 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-11 23:55:37 +0100
commit72599b5500ebdd0c418a0ef1e2c93c833bd31d75 (patch)
tree5cace1c528ffe4ba92ebb21e5eb311928f726dc8 /scripts/lib/wic/imager
parent6174983e20bd24422e5cee57e78dce9c92cb3c15 (diff)
downloadopenembedded-core-72599b5500ebdd0c418a0ef1e2c93c833bd31d75.tar.gz
openembedded-core-72599b5500ebdd0c418a0ef1e2c93c833bd31d75.tar.bz2
openembedded-core-72599b5500ebdd0c418a0ef1e2c93c833bd31d75.zip
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 Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic/imager')
-rw-r--r--scripts/lib/wic/imager/direct.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py
index 9a7d0f5117..83f9688878 100644
--- a/scripts/lib/wic/imager/direct.py
+++ b/scripts/lib/wic/imager/direct.py
@@ -62,7 +62,7 @@ class DirectImageCreator(BaseImageCreator):
self.__disks = {}
self.__disk_format = "direct"
self._disk_names = []
- self._ptable_format = self.ks.handler.bootloader.ptable
+ self.ptable_format = self.ks.handler.bootloader.ptable
self.oe_builddir = oe_builddir
if image_output_dir:
@@ -83,7 +83,7 @@ class DirectImageCreator(BaseImageCreator):
if n == num:
if p.no_table:
return 0
- if self._ptable_format == 'msdos' and realnum > 3:
+ if self.ptable_format == 'msdos' and realnum > 3:
# account for logical partition numbering, ex. sda5..
return realnum + 1
return realnum
@@ -276,7 +276,7 @@ class DirectImageCreator(BaseImageCreator):
self._restore_fstab(fstab)
- self.__image.layout_partitions(self._ptable_format)
+ self.__image.layout_partitions(self.ptable_format)
self.__imgdir = self.workdir
for disk_name, disk in self.__image.disks.items():