From 67b283e11ba3237699c7c0e0c354dae4b1f60f8d Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Mon, 9 Jul 2012 18:09:18 -0700 Subject: [PATCH] Fix some syntax errors. Some syntax errors slipped in with a previous pep8 cleanup to this file. These errors currently prevent distro packages from installing. Fixes bug 1023066. Update: * Proper pep8 indentation. * Wrap in paranthesis instead. Change-Id: I257fbc7f0d8287ac648f2ad23caa7536388486d3 --- quantum/plugins/nicira/nicira_nvp_plugin/cli.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/quantum/plugins/nicira/nicira_nvp_plugin/cli.py b/quantum/plugins/nicira/nicira_nvp_plugin/cli.py index 677836f84..2ce043480 100644 --- a/quantum/plugins/nicira/nicira_nvp_plugin/cli.py +++ b/quantum/plugins/nicira/nicira_nvp_plugin/cli.py @@ -31,8 +31,8 @@ def print_help(): """Help for CLI""" print "\nNVP Plugin Commands:" for key in COMMANDS.keys(): - print " %s %s" % - (key, " ".join(["<%s>" % y for y in COMMANDS[key]["args"]])) + print (" %s %s" % + (key, " ".join(["<%s>" % y for y in COMMANDS[key]["args"]]))) def build_args(cmd, cmdargs, arglist): @@ -46,14 +46,14 @@ def build_args(cmd, cmdargs, arglist): except: LOG.error("Not enough arguments for \"%s\" (expected: %d, got: %d)" % ( cmd, len(cmdargs), len(orig_arglist))) - print "Usage:\n %s %s" % - (cmd, " ".join(["<%s>" % y for y in COMMANDS[cmd]["args"]])) + print ("Usage:\n %s %s" % + (cmd, " ".join(["<%s>" % y for y in COMMANDS[cmd]["args"]]))) sys.exit() if len(arglist) > 0: LOG.error("Too many arguments for \"%s\" (expected: %d, got: %d)" % ( cmd, len(cmdargs), len(orig_arglist))) - print "Usage:\n %s %s" % - (cmd, " ".join(["<%s>" % y for y in COMMANDS[cmd]["args"]])) + print ("Usage:\n %s %s" % + (cmd, " ".join(["<%s>" % y for y in COMMANDS[cmd]["args"]]))) sys.exit() return args -- 2.45.2