diff --git a/lib/python/qmk/cli/kle2json.py b/lib/python/qmk/cli/kle2json.py index e6069709c0..d5a5908e79 100755 --- a/lib/python/qmk/cli/kle2json.py +++ b/lib/python/qmk/cli/kle2json.py @@ -10,7 +10,6 @@ from kle2xy import KLE2xy import qmk.path from qmk.converter import kle2qmk -from qmk.decorators import automagic_keyboard from qmk.info import info_json from qmk.info_json_encoder import InfoJSONEncoder @@ -31,7 +30,7 @@ def fetch_url(url): """Fetch a URL. """ response = requests.get(url, timeout=30) - response.encoding='utf-8-sig' + response.encoding = 'utf-8-sig' return response diff --git a/lib/python/qmk/converter.py b/lib/python/qmk/converter.py index 0e31e17b07..068de21071 100644 --- a/lib/python/qmk/converter.py +++ b/lib/python/qmk/converter.py @@ -1,7 +1,5 @@ """Functions to convert to and from QMK formats """ -from pprint import pprint - from milc import cli @@ -9,7 +7,6 @@ def kle2qmk(kle): """Convert a KLE layout to QMK's layout format. """ layout = [] - layout_alternatives = {} top_left_corner = None # Iterate through the KLE classifying keys by layout