Modify utils/ code into PEP8 style 69/27069/1
authorliyin <liyin11@huawei.com>
Tue, 17 Jan 2017 02:56:19 +0000 (10:56 +0800)
committerliyin <liyin11@huawei.com>
Tue, 17 Jan 2017 02:57:54 +0000 (10:57 +0800)
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>
utils/dashboard/process_data.py
utils/infra_setup/heat/tests/generate_template_test.py
utils/logger.py

index 6ca6ee1..4be0917 100644 (file)
@@ -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"
index 83c905a..374ca30 100755 (executable)
@@ -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():
index 23d749b..80392f5 100644 (file)
@@ -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