From 5234be2880d154813df1615a200af441fa4f4b31 Mon Sep 17 00:00:00 2001 From: Nicco Kunzmann Date: Thu, 26 Mar 2015 20:29:14 +0100 Subject: [PATCH] added missing encoding for portable Python 3.2 --- server/listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/listener.py b/server/listener.py index 10d1a99..523adfd 100644 --- a/server/listener.py +++ b/server/listener.py @@ -37,7 +37,7 @@ def macunpack(data): return ':'.join([s[i:i+2].decode('ascii') for i in range(0, 12, 2)]) def macpack(mac): - return base64.b16decode(mac.replace(':', '').replace('-', '')) + return base64.b16decode(mac.replace(':', '').replace('-', '').encode('ascii')) def unpackbool(data): return data[0]