summaryrefslogtreecommitdiffhomepage
path: root/demos/interactive.py
diff options
context:
space:
mode:
authormagmaus3 <magmaus3@disroot.org>2023-02-14 12:36:10 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2023-08-02 22:07:45 +0200
commit4753b3619dd0f08185c16e3d3d60b98afdbaa040 (patch)
tree62b2ad6b595977471f649671ae7c5bb66282088c /demos/interactive.py
parentd5117fc7988e3ede445ca09d7ffc95d4263445c3 (diff)
Don't use functions from nonexistent py3compat module in demos.py3compat
commit 36bafee8af15d7743fd9f16b7a6b146b4e90de0e Author: magmaus3 <magmaus3@disroot.org> Date: Tue Feb 14 12:36:10 2023 +0100 Don't use functions from nonexistent py3compat module in demos.
Diffstat (limited to 'demos/interactive.py')
-rw-r--r--demos/interactive.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/demos/interactive.py b/demos/interactive.py
index 16eae0e7..0088af32 100644
--- a/demos/interactive.py
+++ b/demos/interactive.py
@@ -19,7 +19,6 @@
import socket
import sys
-from paramiko.py3compat import u
# windows does not have termios...
try:
@@ -51,7 +50,7 @@ def posix_shell(chan):
r, w, e = select.select([chan, sys.stdin], [], [])
if chan in r:
try:
- x = u(chan.recv(1024))
+ x = chan.recv(1024).decode()
if len(x) == 0:
sys.stdout.write("\r\n*** EOF\r\n")
break