diff options
author | Scott Maxwell <scott@codecobblers.com> | 2013-10-31 15:25:45 -0700 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2013-10-31 15:25:45 -0700 |
commit | 7a45d3c70f6f308835ab66e3899e247e0efc17e7 (patch) | |
tree | 978d3cf01da97eabf7a7ad2d92c46160eca49422 /demos/interactive.py | |
parent | 09a4ffb282957595b1eee7adaead5d0503a5f54a (diff) |
More type conversion
Diffstat (limited to 'demos/interactive.py')
-rw-r--r-- | demos/interactive.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/interactive.py b/demos/interactive.py index b7962b35..7138cd6c 100644 --- a/demos/interactive.py +++ b/demos/interactive.py @@ -19,6 +19,7 @@ import socket import sys +from paramiko.py3compat import u # windows does not have termios... try: @@ -49,7 +50,7 @@ def posix_shell(chan): r, w, e = select.select([chan, sys.stdin], [], []) if chan in r: try: - x = chan.recv(1024) + x = u(chan.recv(1024)) if len(x) == 0: sys.stdout.write('\r\n*** EOF\r\n') break |