diff options
-rw-r--r-- | paramiko/sftp_attr.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/paramiko/sftp_attr.py b/paramiko/sftp_attr.py index 8e4ca1b0..51c26e88 100644 --- a/paramiko/sftp_attr.py +++ b/paramiko/sftp_attr.py @@ -19,7 +19,6 @@ import stat import time from paramiko.common import x80000000, o700, o70, xffffffff -from paramiko.py3compat import strftime class SFTPAttributes(object): @@ -208,9 +207,9 @@ class SFTPAttributes(object): time_tuple = time.localtime(self.st_mtime) if abs(time.time() - self.st_mtime) > 15552000: # (15552000 = 6 months) - datestr = strftime("%d %b %Y", time_tuple) + datestr = time.strftime("%d %b %Y", time_tuple) else: - datestr = strftime("%d %b %H:%M", time_tuple) + datestr = time.strftime("%d %b %H:%M", time_tuple) filename = getattr(self, "filename", "?") # not all servers support uid/gid |