aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/util.py
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2025-08-06 17:58:10 +0100
committerTomasz Kramkowski <tomasz@kramkow.ski>2025-08-06 18:42:41 +0100
commit8eab4299c93014613dbadfee6770535b99d48746 (patch)
tree25f2a82d41ec7f78724b4821040873a83c64f9ff /klippy/util.py
parent581208b2ffeeb2a2128aee0741fa3fd9e46358e2 (diff)
downloadkutter-8eab4299c93014613dbadfee6770535b99d48746.tar.gz
kutter-8eab4299c93014613dbadfee6770535b99d48746.tar.xz
kutter-8eab4299c93014613dbadfee6770535b99d48746.zip
Remove python2 support (first party)
Diffstat (limited to 'klippy/util.py')
-rw-r--r--klippy/util.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/klippy/util.py b/klippy/util.py
index 43a2becc..b43a7f1c 100644
--- a/klippy/util.py
+++ b/klippy/util.py
@@ -3,7 +3,7 @@
# Copyright (C) 2016-2020 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
-import sys, os, pty, fcntl, termios, signal, logging, json, time
+import os, pty, fcntl, termios, signal, logging, json, time
import subprocess, traceback, shlex
@@ -100,26 +100,6 @@ def dump_mcu_build():
######################################################################
-# Python2 wrapper hacks
-######################################################################
-
-
-def setup_python2_wrappers():
- if sys.version_info.major >= 3:
- return
- # Add module hacks so that common Python3 module imports work in Python2
- import ConfigParser, Queue, io, StringIO, time
-
- sys.modules["configparser"] = ConfigParser
- sys.modules["queue"] = Queue
- io.StringIO = StringIO.StringIO
- time.process_time = time.clock
-
-
-setup_python2_wrappers()
-
-
-######################################################################
# General system and software information
######################################################################