From 4044de74f1153d2e45e258b0ae67770012cf970e Mon Sep 17 00:00:00 2001 From: Denis Makogon Date: Mon, 13 Jun 2016 14:00:40 +0300 Subject: [PATCH] PEP8 tests failing with E211 error From Py2.x to Py3.x entity of reserved name 'print' changed in Py3.x it became a function, so shell.py with running tox tests with base python 3.x fails to pass those checks because it is necessary to avoid whitespace between function name and its parameters declaration. This patch fixes every 'print' call to avoid whitespace between function name and its parameters Change-Id: Ibdb577b08c8cc775b45fe670ec9db1d3f62cdc79 --- toscaparser/shell.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/toscaparser/shell.py b/toscaparser/shell.py index 848726f..b41c024 100644 --- a/toscaparser/shell.py +++ b/toscaparser/shell.py @@ -67,33 +67,33 @@ class ParserShell(object): version = tosca.version if tosca.version: - print ("\nversion: " + version) + print("\nversion: " + version) if hasattr(tosca, 'description'): description = tosca.description if description: - print ("\ndescription: " + description) + print("\ndescription: " + description) if hasattr(tosca, 'inputs'): inputs = tosca.inputs if inputs: - print ("\ninputs:") + print("\ninputs:") for input in inputs: - print ("\t" + input.name) + print("\t" + input.name) if hasattr(tosca, 'nodetemplates'): nodetemplates = tosca.nodetemplates if nodetemplates: - print ("\nnodetemplates:") + print("\nnodetemplates:") for node in nodetemplates: - print ("\t" + node.name) + print("\t" + node.name) if hasattr(tosca, 'outputs'): outputs = tosca.outputs if outputs: - print ("\noutputs:") + print("\noutputs:") for output in outputs: - print ("\t" + output.name) + print("\t" + output.name) def main(args=None):