about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/linemode.py6
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: