aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/util.py
diff options
context:
space:
mode:
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
######################################################################