Skip to content

Commit

Permalink
Fix interactive control on Python 3 and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bskari committed May 8, 2015
1 parent f1a8acf commit 5268217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interactive_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def interactive_control(host, port, configuration):
sock.sendto(configuration[command], (host, port))
except TypeError:
# Windows + Python 3 workaround?
sock.sendto(bytes(configuration[command]), (host, port))
sock.sendto(bytes(configuration[command], 'utf-8'), (host, port))

# Show the command and JSON
background.fill(black)
Expand Down

0 comments on commit 5268217

Please sign in to comment.