diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2023-01-16 21:43:47 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-01-16 21:43:51 -0500 |
commit | 1e13eac2be67df30558db33e27191816bc1dadb2 (patch) | |
tree | b6abd85f9942fa70422b21cec4ad41dcc2d98b44 | |
parent | 8367147e883583bba71cd660d1bae880a66eb27c (diff) |
Break up a big int literal
We could do this on a LOT of hex and similar literals,
but that's a lot of work for little gain, let's just do that organically
over time instead.
-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 a8d3ecf1..eb4dd900 100644 --- a/paramiko/sftp_attr.py +++ b/paramiko/sftp_attr.py @@ -205,8 +205,8 @@ class SFTPAttributes: datestr = "(unknown date)" else: time_tuple = time.localtime(self.st_mtime) - if abs(time.time() - self.st_mtime) > 15552000: - # (15552000 = 6 months) + if abs(time.time() - self.st_mtime) > 15_552_000: + # (15,552,000s = 6 months) datestr = time.strftime("%d %b %Y", time_tuple) else: datestr = time.strftime("%d %b %H:%M", time_tuple) |