summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-09-05 12:49:35 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-09-05 12:49:35 -0700
commit720806734a05d9de0f47588d816de05646a06f0b (patch)
treeaf800f0d3667be352701a8088641946780deaccb
parent35b9d1540bd98af39e133960c61b06aba621f30d (diff)
Fix an oversight re: py3 & strings in listdir_iter
-rw-r--r--paramiko/sftp_client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py
index d3b95933..3e85a8c9 100644
--- a/paramiko/sftp_client.py
+++ b/paramiko/sftp_client.py
@@ -246,8 +246,8 @@ class SFTPClient(BaseSFTP):
self._convert_status(msg)
count = msg.get_int()
for i in range(count):
- filename = msg.get_string()
- longname = msg.get_string()
+ filename = msg.get_text()
+ longname = msg.get_text()
attr = SFTPAttributes._from_msg(
msg, filename, longname)
if (filename != '.') and (filename != '..'):