diff options
Diffstat (limited to 'serial/urlhandler/protocol_socket.py')
-rw-r--r-- | serial/urlhandler/protocol_socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/urlhandler/protocol_socket.py b/serial/urlhandler/protocol_socket.py index 58eddd1..c90a8e4 100644 --- a/serial/urlhandler/protocol_socket.py +++ b/serial/urlhandler/protocol_socket.py @@ -168,7 +168,7 @@ class SocketSerial(SerialBase): closed.""" if not self._isOpen: raise portNotOpenError try: - self._socket.sendall(data) + self._socket.sendall(to_bytes(data)) except socket.error, e: # XXX what exception if socket connection fails raise SerialException("socket connection failed: %s" % e) |