wic:code cleanup: No space allowed

Fixed pylint warning
  'No space allowed around keyword argument assignment'

(From OE-Core rev: e07dd9b9c71960fbeded162ed52fbce06de620e9)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2015-04-09 14:36:49 +03:00
committed by Richard Purdie
parent 1521a3dda0
commit d0d0ab85c4
9 changed files with 59 additions and 59 deletions

View File

@@ -79,28 +79,28 @@ def wic_create_subcommand(args, usage_str):
Command-line handling for image creation. The real work is done
by image.engine.wic_create()
"""
parser = optparse.OptionParser(usage = usage_str)
parser = optparse.OptionParser(usage=usage_str)
parser.add_option("-o", "--outdir", dest = "outdir",
action = "store", help = "name of directory to create image in")
parser.add_option("-i", "--infile", dest = "properties_file",
action = "store", help = "name of file containing the values for image properties as a JSON file")
parser.add_option("-e", "--image-name", dest = "image_name",
action = "store", help = "name of the image to use the artifacts from e.g. core-image-sato")
parser.add_option("-r", "--rootfs-dir", dest = "rootfs_dir",
action = "callback", callback = callback_rootfs_dir, type = "string",
help = "path to the /rootfs dir to use as the .wks rootfs source")
parser.add_option("-b", "--bootimg-dir", dest = "bootimg_dir",
action = "store", help = "path to the dir containing the boot artifacts (e.g. /EFI or /syslinux dirs) to use as the .wks bootimg source")
parser.add_option("-k", "--kernel-dir", dest = "kernel_dir",
action = "store", help = "path to the dir containing the kernel to use in the .wks bootimg")
parser.add_option("-n", "--native-sysroot", dest = "native_sysroot",
action = "store", help = "path to the native sysroot containing the tools to use to build the image")
parser.add_option("-p", "--skip-build-check", dest = "build_check",
action = "store_false", default = True, help = "skip the build check")
parser.add_option("-f", "--build-rootfs", action="store_true", help = "build rootfs")
parser.add_option("-D", "--debug", dest = "debug", action = "store_true",
default = False, help = "output debug information")
parser.add_option("-o", "--outdir", dest="outdir",
action="store", help="name of directory to create image in")
parser.add_option("-i", "--infile", dest="properties_file",
action="store", help="name of file containing the values for image properties as a JSON file")
parser.add_option("-e", "--image-name", dest="image_name",
action="store", help="name of the image to use the artifacts from e.g. core-image-sato")
parser.add_option("-r", "--rootfs-dir", dest="rootfs_dir",
action="callback", callback=callback_rootfs_dir, type="string",
help="path to the /rootfs dir to use as the .wks rootfs source")
parser.add_option("-b", "--bootimg-dir", dest="bootimg_dir",
action="store", help="path to the dir containing the boot artifacts (e.g. /EFI or /syslinux dirs) to use as the .wks bootimg source")
parser.add_option("-k", "--kernel-dir", dest="kernel_dir",
action="store", help="path to the dir containing the kernel to use in the .wks bootimg")
parser.add_option("-n", "--native-sysroot", dest="native_sysroot",
action="store", help="path to the native sysroot containing the tools to use to build the image")
parser.add_option("-p", "--skip-build-check", dest="build_check",
action="store_false", default=True, help="skip the build check")
parser.add_option("-f", "--build-rootfs", action="store_true", help="build rootfs")
parser.add_option("-D", "--debug", dest="debug", action="store_true",
default=False, help="output debug information")
(options, args) = parser.parse_args(args)
@@ -223,11 +223,11 @@ def wic_list_subcommand(args, usage_str):
Command-line handling for listing available image properties and
values. The real work is done by image.engine.wic_list()
"""
parser = optparse.OptionParser(usage = usage_str)
parser = optparse.OptionParser(usage=usage_str)
parser.add_option("-o", "--outfile", action = "store",
dest = "properties_file",
help = "dump the possible values for image properties to a JSON file")
parser.add_option("-o", "--outfile", action="store",
dest="properties_file",
help="dump the possible values for image properties to a JSON file")
(options, args) = parser.parse_args(args)
@@ -276,12 +276,12 @@ subcommands = {
def start_logging(loglevel):
logging.basicConfig(filname = 'wic.log', filemode = 'w', level=loglevel)
logging.basicConfig(filname='wic.log', filemode='w', level=loglevel)
def main():
parser = optparse.OptionParser(version = "wic version %s" % __version__,
usage = wic_usage)
parser = optparse.OptionParser(version="wic version %s" % __version__,
usage=wic_usage)
parser.disable_interspersed_args()