diff options
author | liyin <liyin11@huawei.com> | 2017-01-17 10:56:19 +0800 |
---|---|---|
committer | liyin <liyin11@huawei.com> | 2017-01-17 10:57:54 +0800 |
commit | f419c51fea3219386308b34971e76a908693b33d (patch) | |
tree | 7a49d5ecd87dc3889eb6fd188638c2b8f88dd81e | |
parent | 14f84a307691cc17d02ec10dd07cf5f3e2c03705 (diff) |
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 <liyin11@huawei.com>
-rw-r--r-- | utils/dashboard/process_data.py | 2 | ||||
-rwxr-xr-x | utils/infra_setup/heat/tests/generate_template_test.py | 4 | ||||
-rw-r--r-- | utils/logger.py | 1 |
3 files changed, 3 insertions, 4 deletions
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 |