summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2023-01-09 23:14:48 -0500
committerJeff Forcier <jeff@bitprophet.org>2023-01-09 23:26:00 -0500
commit2d3e8db0674cba7eae5e616d261d2ab41e75c54c (patch)
treefa4e47cfa8f9a72c3e2d285675575133dccc75b4
parenta0e00e981e9066b16384a1281d7e3b25bc1a6378 (diff)
downloadparamiko-2d3e8db0674cba7eae5e616d261d2ab41e75c54c.tar.gz
py3compat.strftime -> time.strftime
-rw-r--r--paramiko/sftp_attr.py5
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