From 779f4da011ffc6c68eb8330dfff94f0788ad3731 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Tue, 23 Jun 2020 13:23:27 +0200 Subject: [PATCH] working version of mpExperience with python 3 --- mpExperience.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mpExperience.py b/mpExperience.py index 594c69a..5773c90 100644 --- a/mpExperience.py +++ b/mpExperience.py @@ -210,6 +210,9 @@ class MpExperience: if val == "Error": print("oooops can't get sysctl " + sysctlKey) else: + # For Python3 compatibility + if type(val) is bytes: + val = val.decode() sysctlBUP[k] = val.split(" ",2)[2][:-1]