summaryrefslogtreecommitdiffstats
path: root/Obok_plugin
diff options
context:
space:
mode:
authorApprentice Harper <[email protected]>2021-04-11 15:07:17 +0100
committerGitHub <[email protected]>2021-04-11 15:07:17 +0100
commit86a90117e5eaec68b365ca1c792c68dc80896940 (patch)
treea883b7b4aa2461b3f8b338dc2abd514121f39244 /Obok_plugin
parent874a6b8de99493cb4fb5dca0b0d433b47f2d4df6 (diff)
parent0ce86fa8db4b6da71785f37d946e39daf19bb083 (diff)
Merge pull request #1586 from raiden64/master
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 a00003b..ba480ec 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])