working version of mpExperience with python 3

This commit is contained in:
Quentin De Coninck 2020-06-23 13:23:27 +02:00
parent 0dedf362dc
commit 779f4da011

View File

@ -210,6 +210,9 @@ class MpExperience:
if val == "Error": if val == "Error":
print("oooops can't get sysctl " + sysctlKey) print("oooops can't get sysctl " + sysctlKey)
else: else:
# For Python3 compatibility
if type(val) is bytes:
val = val.decode()
sysctlBUP[k] = val.split(" ",2)[2][:-1] sysctlBUP[k] = val.split(" ",2)[2][:-1]