From 62cfc2527f4824f1373a2819552f81ffd877b599 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 15 Dec 2021 11:27:08 -0500 Subject: [PATCH] statistics: Improve Python3 compatibility Reported by @vladimir-poleh . Signed-off-by: Kevin O'Connor --- klippy/extras/statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/statistics.py b/klippy/extras/statistics.py index d9c0a367..90cd53f8 100644 --- a/klippy/extras/statistics.py +++ b/klippy/extras/statistics.py @@ -13,7 +13,7 @@ class PrinterSysStats: self.last_mem_avail = 0 self.mem_file = None try: - self.mem_file = open("/proc/meminfo", "rb") + self.mem_file = open("/proc/meminfo", "r") except: pass printer.register_event_handler("klippy:disconnect", self._disconnect)