summaryrefslogtreecommitdiff
path: root/paramiko/sftp_attr.py
diff options
context:
space:
mode:
Diffstat (limited to 'paramiko/sftp_attr.py')
-rw-r--r--paramiko/sftp_attr.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/paramiko/sftp_attr.py b/paramiko/sftp_attr.py
index 1ad16349..8b1c17bd 100644
--- a/paramiko/sftp_attr.py
+++ b/paramiko/sftp_attr.py
@@ -208,10 +208,10 @@ 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 = strftime("%d %b %Y", time_tuple)
else:
- datestr = strftime('%d %b %H:%M', time_tuple)
- filename = getattr(self, 'filename', '?')
+ datestr = strftime("%d %b %H:%M", time_tuple)
+ filename = getattr(self, "filename", "?")
# not all servers support uid/gid
uid = self.st_uid
@@ -237,7 +237,7 @@ class SFTPAttributes(object):
)
def asbytes(self):
- return self._as_text().encode('utf-8')
+ return self._as_text().encode("utf-8")
if PY2:
__unicode__ = _as_text