aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2025-08-15 17:47:44 +0100
committerTomasz Kramkowski <tomasz@kramkow.ski>2025-08-15 21:46:37 +0100
commit98e179c3bbbb6a5d10130eae5b97231b76cad7f7 (patch)
treee10eed30fb10d8cd8579ad0a989a07f80a9f94c1
parent6ac9c825932eade64ac8707babec43079a129a14 (diff)
downloadkutter-98e179c3bbbb6a5d10130eae5b97231b76cad7f7.tar.gz
kutter-98e179c3bbbb6a5d10130eae5b97231b76cad7f7.tar.xz
kutter-98e179c3bbbb6a5d10130eae5b97231b76cad7f7.zip
Clean up some remaining python2 code
-rwxr-xr-xklippy/console.py7
-rw-r--r--klippy/klippy.py2
2 files changed, 6 insertions, 3 deletions
diff --git a/klippy/console.py b/klippy/console.py
index 3ad6e4eb..11a3feb9 100755
--- a/klippy/console.py
+++ b/klippy/console.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
# Script to implement a test console with firmware over serial port
#
# Copyright (C) 2016-2021 Kevin O'Connor <kevin@koconnor.net>
@@ -81,7 +81,10 @@ class KeyboardReader:
"MCU config: %s"
% (
" ".join(
- ["%s=%s" % (k, v) for k, v in msgparser.get_constants().items()]
+ [
+ "%s=%s" % (k, v)
+ for k, v in list(msgparser.get_constants().items())
+ ]
)
)
)
diff --git a/klippy/klippy.py b/klippy/klippy.py
index 0cdb408f..17293af9 100644
--- a/klippy/klippy.py
+++ b/klippy/klippy.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
# Main code for host side printer firmware
#
# Copyright (C) 2016-2024 Kevin O'Connor <kevin@koconnor.net>