aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/statistics.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-12-15 11:27:08 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-12-15 11:27:08 -0500
commit62cfc2527f4824f1373a2819552f81ffd877b599 (patch)
treeeca702f775b66ce21d89b3b89440a3dd08847989 /klippy/extras/statistics.py
parent0f3d68613dbea0af48efd3bdc627212af13fbee0 (diff)
downloadkutter-62cfc2527f4824f1373a2819552f81ffd877b599.tar.gz
kutter-62cfc2527f4824f1373a2819552f81ffd877b599.tar.xz
kutter-62cfc2527f4824f1373a2819552f81ffd877b599.zip
statistics: Improve Python3 compatibility
Reported by @vladimir-poleh . Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/statistics.py')
-rw-r--r--klippy/extras/statistics.py2
1 files changed, 1 insertions, 1 deletions
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)