diff options
author | Scott Maxwell <scott@codecobblers.com> | 2013-10-30 16:46:33 -0700 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2013-10-30 16:46:33 -0700 |
commit | 2ea352b8baf1037bd22fc79146ef646c163a7692 (patch) | |
tree | 439892d24b7659bb4345790af09582aaa0162377 /paramiko/sftp_attr.py | |
parent | 6bd1e42b43017c8df3edd826fad5aca798538b10 (diff) | |
download | paramiko-2ea352b8baf1037bd22fc79146ef646c163a7692.tar.gz |
Fix dict iters, sorts, exceptions, bytes renames and tuple args
Diffstat (limited to 'paramiko/sftp_attr.py')
-rw-r--r-- | paramiko/sftp_attr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/sftp_attr.py b/paramiko/sftp_attr.py index b459b04b..84c83929 100644 --- a/paramiko/sftp_attr.py +++ b/paramiko/sftp_attr.py @@ -143,7 +143,7 @@ class SFTPAttributes (object): msg.add_int(long(self.st_mtime)) if self._flags & self.FLAG_EXTENDED: msg.add_int(len(self.attr)) - for key, val in self.attr.iteritems(): + for key, val in self.attr.items(): msg.add_string(key) msg.add_string(val) return @@ -158,7 +158,7 @@ class SFTPAttributes (object): out += 'mode=' + oct(self.st_mode) + ' ' if (self.st_atime is not None) and (self.st_mtime is not None): out += 'atime=%d mtime=%d ' % (self.st_atime, self.st_mtime) - for k, v in self.attr.iteritems(): + for k, v in self.attr.items(): out += '"%s"=%r ' % (str(k), v) out += ']' return out |