summaryrefslogtreecommitdiff
path: root/source/n/pssh/pssh-2.3.1-py3-str-bytes-encode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/pssh/pssh-2.3.1-py3-str-bytes-encode.patch')
-rw-r--r--source/n/pssh/pssh-2.3.1-py3-str-bytes-encode.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/n/pssh/pssh-2.3.1-py3-str-bytes-encode.patch b/source/n/pssh/pssh-2.3.1-py3-str-bytes-encode.patch
new file mode 100644
index 00000000..1a6b4cc3
--- /dev/null
+++ b/source/n/pssh/pssh-2.3.1-py3-str-bytes-encode.patch
@@ -0,0 +1,13 @@
+diff --git a/psshlib/askpass_server.py b/psshlib/askpass_server.py
+index 4293164..4680749 100644
+--- a/psshlib/askpass_server.py
++++ b/psshlib/askpass_server.py
+@@ -69,7 +69,7 @@ class PasswordServer(object):
+ buffer = self.buffermap[fd]
+ conn = self.socketmap[fd]
+ try:
+- bytes_written = conn.send(buffer)
++ bytes_written = conn.send(buffer.encode('utf-8'))
+ except socket.error:
+ _, e, _ = sys.exc_info()
+ number = e.args[0]