Skip to content

Commit

Permalink
Fix an oversight re: py3 & strings in listdir_iter
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Sep 5, 2014
1 parent 35b9d15 commit 7208067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paramiko/sftp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def listdir_iter(self, path='.', read_aheads=50):
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 != '..'):
Expand Down

0 comments on commit 7208067

Please sign in to comment.