summary refs log tree commit diff stats
path: root/examples/plugin_linemode.py
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2016-12-23 11:25:10 +0100
committernfnty <git@nfnty.se>2017-01-17 05:59:02 +0100
commit916c239014b95f02bf045f8de0488d7614126edf (patch)
tree6dce2d3bfcbd8ed76363c8a9f66f0efa3277ca58 /examples/plugin_linemode.py
parentb3d031a913814900467358b2adf20a148bf6de1a (diff)
downloadranger-916c239014b95f02bf045f8de0488d7614126edf.tar.gz
linting: Python 2 compat
Diffstat (limited to 'examples/plugin_linemode.py')
-rw-r--r--examples/plugin_linemode.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/plugin_linemode.py b/examples/plugin_linemode.py
index 6f16743d..febde8f1 100644
--- a/examples/plugin_linemode.py
+++ b/examples/plugin_linemode.py
@@ -15,8 +15,8 @@ from ranger.core.linemode import LinemodeBase
 class MyLinemode(LinemodeBase):
     name = "rot13"
 
-    def filetitle(self, file, metadata):
-        return codecs.encode(file.relative_path, "rot_13")
+    def filetitle(self, fobj, metadata):
+        return codecs.encode(fobj.relative_path, "rot_13")
 
-    def infostring(self, file, metadata):
+    def infostring(self, fobj, metadata):
         raise NotImplementedError