mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 13:39:49 +02:00
wic: code cleanup: wildcard imports
Here is what PEP8(Style Guide for Python Code) says about this: Wildcard imports (from <module> import *) should be avoided, as they make it unclear which names are present in the namespace, confusing both readers and many automated tools. (From OE-Core rev: 13416c1941f5dc8abcdb0073f2104a89eae2d6f1) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1d0c3387e8
commit
f2a0a98523
@@ -20,10 +20,7 @@ from __future__ import with_statement
|
||||
import os
|
||||
import errno
|
||||
|
||||
from wic import msger
|
||||
from wic.utils import runner
|
||||
from wic.utils.errors import *
|
||||
from wic.utils.oe.misc import *
|
||||
from wic.utils.oe.misc import exec_cmd
|
||||
|
||||
def makedirs(dirname):
|
||||
"""A version of os.makedirs() that doesn't throw an
|
||||
|
||||
@@ -19,10 +19,8 @@
|
||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
from wic import msger
|
||||
from wic.utils import runner
|
||||
from wic.utils.errors import ImageError
|
||||
from wic.utils.fs_related import *
|
||||
from wic.utils.oe.misc import *
|
||||
from wic.utils.oe.misc import exec_cmd, exec_native_cmd
|
||||
|
||||
# Overhead of the MBR partitioning scheme (just one sector)
|
||||
MBR_OVERHEAD = 1
|
||||
|
||||
Reference in New Issue
Block a user