commit | b15dc058d8b77637727df6ec61683b3bc871b332 | [log] [tgz] |
---|---|---|
author | Chris Liechti <cliechti@gmx.net> | Mon Oct 19 23:17:16 2015 +0200 |
committer | Chris Liechti <cliechti@gmx.net> | Mon Oct 19 23:17:16 2015 +0200 |
tree | 8421879c286d9c09e5f79f69a3b6e81f951377e3 | |
parent | ad11d17d1ec44a5b3ff9eafa1732a1380d138cf9 [diff] [blame] |
rfc2217: fix escape function (iterate over bytes properly for Python 3 compatibility, fixes #20)
diff --git a/serial/rfc2217.py b/serial/rfc2217.py index 3ddc33d..a70df5f 100644 --- a/serial/rfc2217.py +++ b/serial/rfc2217.py
@@ -1007,7 +1007,7 @@ socket.sendall(escape(data)) """ - for byte in data: + for byte in iterbytes(data): if byte == IAC: yield IAC yield IAC