summaryrefslogtreecommitdiffstats
path: root/Obok_plugin
diff options
context:
space:
mode:
authorraiden64 <[email protected]>2021-03-05 22:54:53 +0100
committerraiden64 <[email protected]>2021-03-05 22:54:53 +0100
commit0ce86fa8db4b6da71785f37d946e39daf19bb083 (patch)
tree167c8777cb740f2dd84e3e393aebb060cd30b50b /Obok_plugin
parent76a47e0dd079e76ff9cf7ba3458d137ead7f8c29 (diff)
Fix in keyfetch for obok on MacOS
Diffstat (limited to 'Obok_plugin')
-rw-r--r--Obok_plugin/obok/obok.py2
1 files changed, 1 insertions, 1 deletions
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])