From e07dd9b9c71960fbeded162ed52fbce06de620e9 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 9 Apr 2015 14:36:49 +0300 Subject: wic:code cleanup: No space allowed Fixed pylint warning 'No space allowed around keyword argument assignment' Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- scripts/wic | 58 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'scripts/wic') diff --git a/scripts/wic b/scripts/wic index 524156ddc5..dcf1a5520e 100755 --- a/scripts/wic +++ b/scripts/wic @@ -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.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 = 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") (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() -- cgit 1.2.3-korg