Skip to content

Commit

Permalink
added missing encoding for portable Python 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
niccokunzmann committed Mar 26, 2015
1 parent f815d23 commit 5234be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 5234be2

Please sign in to comment.