From fb43bc0e258534207d579b3b9c01e4a0332006ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 4 Jun 2020 10:31:28 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20another=20Py3=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/util/gcodeInterpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/gcodeInterpreter.py b/src/octoprint/util/gcodeInterpreter.py index 616452af0..9f5dda89c 100644 --- a/src/octoprint/util/gcodeInterpreter.py +++ b/src/octoprint/util/gcodeInterpreter.py @@ -501,7 +501,7 @@ class gcode(object): self.totalMoveTimeMinute = totalMoveTimeMinute def _parseCuraProfileString(self, comment, prefix): - return {key: value for (key, value) in map(lambda x: x.split("=", 1), zlib.decompress(base64.b64decode(comment[len(prefix):])).split("\b"))} + return {key: value for (key, value) in map(lambda x: x.split(b"=", 1), zlib.decompress(base64.b64decode(comment[len(prefix):])).split(b"\b"))} def get_result(self): return dict(total_time=self.totalMoveTimeMinute,