summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorDavid le Blanc <david.leblanc@freestyletechnology.com.au>2017-01-26 00:07:11 +1100
committernfnty <git@nfnty.se>2017-01-25 15:22:50 +0100
commite7f65ba6a2dc56dc3bf94107d98f0177f1ecc431 (patch)
treef5991fc8977dfaa0c3d1d73b758cb1a469da8760 /ranger
parent8724cd5e44207e7bc0af77da72b2cd8e1a2fd5c6 (diff)
downloadranger-e7f65ba6a2dc56dc3bf94107d98f0177f1ecc431.tar.gz
core.actions: Pass path to `_run_pager()`, not file object
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/actions.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 23f58173..6c9e419b 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -1236,7 +1236,7 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
             write("\n")
 
         temporary_file.flush()
-        self._run_pager(temporary_file)
+        self._run_pager(temporary_file.name)
 
     def dump_commands(self):
         temporary_file = tempfile.NamedTemporaryFile()
@@ -1261,7 +1261,7 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
                 write("    :%s\n" % cmd.get_name())
 
         temporary_file.flush()
-        self._run_pager(temporary_file)
+        self._run_pager(temporary_file.name)
 
     def dump_settings(self):
         temporary_file = tempfile.NamedTemporaryFile()
@@ -1273,7 +1273,7 @@ class Actions(  # pylint: disable=too-many-instance-attributes,too-many-public-m
             write("%30s = %s\n" % (setting, getattr(self.settings, setting)))
 
         temporary_file.flush()
-        self._run_pager(temporary_file)
+        self._run_pager(temporary_file.name)
 
     # --------------------------
     # -- File System Operations