diff options
author | joelostblom <joel.ostblom@gmail.com> | 2018-12-26 13:56:12 +0100 |
---|---|---|
committer | joelostblom <joel.ostblom@gmail.com> | 2018-12-26 13:56:12 +0100 |
commit | dfe2ae6592904a4095d8added21f7f237b9a06dc (patch) | |
tree | b616b13bc7da6ee04c4a259c766f9609e73455c3 /ranger | |
parent | e14946c116d707f60d0cfb7e2fb2c3da0490aafb (diff) | |
download | ranger-dfe2ae6592904a4095d8added21f7f237b9a06dc.tar.gz |
Increase function name accuracy
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/linemode.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/core/linemode.py b/ranger/core/linemode.py index a98db193..d7fd717c 100644 --- a/ranger/core/linemode.py +++ b/ranger/core/linemode.py @@ -142,7 +142,7 @@ class HumanMtimeLinemode(LinemodeBase): def infostring(self, fobj, metadata): if fobj.stat is None: return '?' - return print_human_mtime(fobj.stat.st_mtime) + return _human_readable_mtime(fobj.stat.st_mtime) class SizeHumanMtimeLinemode(LinemodeBase): @@ -155,10 +155,10 @@ class SizeHumanMtimeLinemode(LinemodeBase): if fobj.stat is None: return '?' size = human_readable(fobj.size) - return "%s %11s" % (size, print_human_mtime(fobj.stat.st_mtime)) + return "%s %11s" % (size, _human_readable_mtime(fobj.stat.st_mtime)) -def print_human_mtime(file_mtime): +def _human_readable_mtime(file_mtime): file_date = datetime.fromtimestamp(file_mtime) time_diff = datetime.now().date() - file_date.date() if time_diff.days >= 365: |