From 08b12e7a7f0b5971282c371b0d0b9320030f3874 Mon Sep 17 00:00:00 2001 From: liyin Date: Tue, 10 Jan 2017 19:42:20 +0800 Subject: 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: I965c507390adcb4404d33710f783b22241542890 Signed-off-by: liyin --- utils/dashboard/uploader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/dashboard/uploader.py') diff --git a/utils/dashboard/uploader.py b/utils/dashboard/uploader.py index a4686560..97ffd38c 100755 --- a/utils/dashboard/uploader.py +++ b/utils/dashboard/uploader.py @@ -51,7 +51,8 @@ class Uploader(object): def _test(): - #data = '{"details": [{"client": 200, "throughput": 20}, {"client": 300, "throughput": 20}], "case_name": "rubbos"}' + # data = '{"details": [{"client": 200, "throughput": 20}, + # {"client": 300, "throughput": 20}], "case_name": "rubbos"}' if len(sys.argv) < 2: print ("no argumens input!!") exit(1) @@ -60,5 +61,6 @@ def _test(): data = json.load(stream) Uploader().upload_result(data) + if __name__ == "__main__": _test() -- cgit 1.2.3-korg