From 2d3e8db0674cba7eae5e616d261d2ab41e75c54c Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 9 Jan 2023 23:14:48 -0500 Subject: py3compat.strftime -> time.strftime --- paramiko/sftp_attr.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'paramiko') 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 -- cgit v1.2.1