]> xmof Git - DeDRM.git/commitdiff
Fix in keyfetch for obok on MacOS
authorraiden64 <raiden64@users.noreply.github.com>
Fri, 5 Mar 2021 21:54:53 +0000 (22:54 +0100)
committerraiden64 <raiden64@users.noreply.github.com>
Fri, 5 Mar 2021 21:54:53 +0000 (22:54 +0100)
Obok_plugin/obok/obok.py

index 6c43089dd713fa57ffe401fea8e2b5e2bec97333..9aa815776d4c7c3354b900aee7a1e8f4f2366499 100644 (file)
@@ -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])