From 1e13eac2be67df30558db33e27191816bc1dadb2 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 16 Jan 2023 21:43:47 -0500 Subject: 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. --- paramiko/sftp_attr.py | 4 ++-- 1 file 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) -- cgit v1.2.1