diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-02 13:58:14 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-03 12:43:30 +0100 |
commit | 1561970e88c988cc8e8d6626749777c1bbd8123e (patch) | |
tree | c3a9fff8bf578eac140dc69a747e777e78e45ece /scripts/lib/wic/imager/direct.py | |
parent | e7287e5157eb8a1486b8896ae4c9a050b86562c7 (diff) | |
download | poky-1561970e88c988cc8e8d6626749777c1bbd8123e.tar.gz |
wic: fix pylint warning redefined-builtin
Renamed variables named as Python builtin functions.
(From OE-Core rev: bed98142e3e47ac2862ccf8fe3e4bdeabfc91172)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/imager/direct.py')
-rw-r--r-- | scripts/lib/wic/imager/direct.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py index 74ebbe79b6..761e436db5 100644 --- a/scripts/lib/wic/imager/direct.py +++ b/scripts/lib/wic/imager/direct.py | |||
@@ -340,10 +340,10 @@ class DirectImageCreator(BaseImageCreator): | |||
340 | if p.get_rootfs() is None: | 340 | if p.get_rootfs() is None: |
341 | continue | 341 | continue |
342 | if p.mountpoint == '/': | 342 | if p.mountpoint == '/': |
343 | str = ':' | 343 | suffix = ':' |
344 | else: | 344 | else: |
345 | str = '["%s"]:' % (p.mountpoint or p.label) | 345 | suffix = '["%s"]:' % (p.mountpoint or p.label) |
346 | msg += ' ROOTFS_DIR%s%s\n' % (str.ljust(20), p.get_rootfs()) | 346 | msg += ' ROOTFS_DIR%s%s\n' % (suffix.ljust(20), p.get_rootfs()) |
347 | 347 | ||
348 | msg += ' BOOTIMG_DIR: %s\n' % self.bootimg_dir | 348 | msg += ' BOOTIMG_DIR: %s\n' % self.bootimg_dir |
349 | msg += ' KERNEL_DIR: %s\n' % self.kernel_dir | 349 | msg += ' KERNEL_DIR: %s\n' % self.kernel_dir |