From 0ce86fa8db4b6da71785f37d946e39daf19bb083 Mon Sep 17 00:00:00 2001 From: raiden64 Date: Fri, 5 Mar 2021 22:54:53 +0100 Subject: [PATCH] Fix in keyfetch for obok on MacOS --- Obok_plugin/obok/obok.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Obok_plugin/obok/obok.py b/Obok_plugin/obok/obok.py index 6c43089..9aa8157 100644 --- a/Obok_plugin/obok/obok.py +++ b/Obok_plugin/obok/obok.py @@ -478,7 +478,7 @@ class KoboLibrary(object): macaddrs.append(re.sub("-", ":", m.group(1)).upper()) elif sys.platform.startswith('darwin'): c = re.compile('\s(' + '[0-9a-f]{2}:' * 5 + '[0-9a-f]{2})(\s|$)', re.IGNORECASE) - output = subprocess.check_output('/sbin/ifconfig -a', shell=True) + output = subprocess.check_output('/sbin/ifconfig -a', shell=True, encoding='utf-8') matches = c.findall(output) for m in matches: # print "m:{0}".format(m[0])