summaryrefslogtreecommitdiff
path: root/layouts/community/ergodox/algernon
diff options
context:
space:
mode:
authorZach White <skullydazed@gmail.com>2021-09-27 10:02:54 -0700
committerGitHub <noreply@github.com>2021-09-27 10:02:54 -0700
commitfce9cb933845bf0b74d322eba02de3b76daaeb84 (patch)
treea28ffc6f3c53a4ddf1004f1a99938e2e5a42e6c3 /layouts/community/ergodox/algernon
parent5f38a98fa07677be960b71b8e3b0a1785effe0d8 (diff)
downloadqmk_firmware-fce9cb933845bf0b74d322eba02de3b76daaeb84.tar.gz
qmk_firmware-fce9cb933845bf0b74d322eba02de3b76daaeb84.zip
Cleanup issues identified by lgtm (#14459)
* cleanup issues identified by lgtm * fix the git_status check
Diffstat (limited to 'layouts/community/ergodox/algernon')
-rwxr-xr-xlayouts/community/ergodox/algernon/tools/log-to-heatmap.py4
-rwxr-xr-xlayouts/community/ergodox/algernon/tools/text-to-log.py1
2 files changed, 1 insertions, 4 deletions
diff --git a/layouts/community/ergodox/algernon/tools/log-to-heatmap.py b/layouts/community/ergodox/algernon/tools/log-to-heatmap.py
index e927e0e39d..5f52d9932b 100755
--- a/layouts/community/ergodox/algernon/tools/log-to-heatmap.py
+++ b/layouts/community/ergodox/algernon/tools/log-to-heatmap.py
@@ -8,7 +8,6 @@ import time
from math import floor
from os.path import dirname
-from subprocess import Popen, PIPE, STDOUT
from blessings import Terminal
class Heatmap(object):
@@ -122,7 +121,6 @@ class Heatmap(object):
for (c, r) in self.log:
coords = self.coord(c, r)
- b, n = coords
cap = self.max_cnt
if cap == 0:
cap = 1
@@ -302,7 +300,7 @@ def main(opts):
break
if not process_line(line, heatmaps, opts):
continue
- except:
+ except Exception:
pass
stamped_log = open ("%s/stamped-log" % (out_dir), "a+")
diff --git a/layouts/community/ergodox/algernon/tools/text-to-log.py b/layouts/community/ergodox/algernon/tools/text-to-log.py
index f080c32cd0..ba60a2e281 100755
--- a/layouts/community/ergodox/algernon/tools/text-to-log.py
+++ b/layouts/community/ergodox/algernon/tools/text-to-log.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python3
-import os
import sys
charmap = {