From: liyin Date: Tue, 17 Jan 2017 02:56:19 +0000 (+0800) Subject: Modify utils/ code into PEP8 style X-Git-Tag: danube.1.RC1~27 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=bottlenecks.git;a=commitdiff_plain;h=f419c51fea3219386308b34971e76a908693b33d Modify utils/ code into PEP8 style JIRA: BOTTLENECK-100 Modify all the code in the utils folder into PEP8 style. Using more standard way to realize our function. Change-Id: Ie75c57f7fdd2a9d03849c3cb240918a6779d6be9 Signed-off-by: liyin --- diff --git a/utils/dashboard/process_data.py b/utils/dashboard/process_data.py index 6ca6ee1e..4be09178 100644 --- a/utils/dashboard/process_data.py +++ b/utils/dashboard/process_data.py @@ -15,7 +15,7 @@ from uploader import Uploader def printUsage(): print ("Usage: python process_data.py required_params(**)" - " optional_params([])") + " optional_params([])") print " ** -i|--input input_data_dir" print " ** -s|--suite suite_name" print " ** -c|--conf conf_file" diff --git a/utils/infra_setup/heat/tests/generate_template_test.py b/utils/infra_setup/heat/tests/generate_template_test.py index 83c905ad..374ca30e 100755 --- a/utils/infra_setup/heat/tests/generate_template_test.py +++ b/utils/infra_setup/heat/tests/generate_template_test.py @@ -7,14 +7,14 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## +import template +import common import os import unittest import mock import sys sys.path.append("..") -import template -import common def reset_common(): diff --git a/utils/logger.py b/utils/logger.py index 23d749b6..80392f59 100644 --- a/utils/logger.py +++ b/utils/logger.py @@ -28,7 +28,6 @@ class Logger: # if user set --debug as a cli parameter # we will set this variable "Debug" to output debug info. DEBUG = os.getenv('DEBUG') - conf = Parser() self.logger = logging.getLogger(logger_name) self.logger.propagate = 0