about summary refs log tree commit diff
path: root/src/ci
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-02-12 18:55:41 +0900
committerGitHub <noreply@github.com>2020-02-12 18:55:41 +0900
commit931005d549efb1b25b581ae66c12deeff9899053 (patch)
treee44f6319509d78faa3da3e7a2482a769ce05afd3 /src/ci
parent4b82b51213f0345c5788e62d99b6ccae4f1a19d3 (diff)
parent77d158d4016a07e7a7f09c4f380a8c58aa8877d1 (diff)
Rollup merge of #68947 - chrissimpkins:python-fmt, r=alexcrichton
Python script PEP8 style guide space formatting and minor Python source cleanup

This PR includes the following changes in the Python sources based on a flake8 3.7.9 (mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.7.6 on Darwin lint:

- PEP8 style guide spacing updates *without* line length changes
- removal of unused local variable assignments in context managers and exception handling
- removal of unused Python import statements
- removal of unnecessary semicolons
Diffstat (limited to 'src/ci')
-rw-r--r--src/ci/cpu-usage-over-time.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ci/cpu-usage-over-time.py b/src/ci/cpu-usage-over-time.py
index daf21670b33..78ac0603681 100644
--- a/src/ci/cpu-usage-over-time.py
+++ b/src/ci/cpu-usage-over-time.py
@@ -148,11 +148,11 @@ else:
     print('unknown platform', sys.platform)
     sys.exit(1)
 
-cur_state = State();
+cur_state = State()
 print("Time,Idle")
 while True:
-    time.sleep(1);
-    next_state = State();
+    time.sleep(1)
+    next_state = State()
     now = datetime.datetime.utcnow().isoformat()
     idle = next_state.idle_since(cur_state)
     print("%s,%s" % (now, idle))