summary refs log tree commit diff stats
path: root/examples/plugin_file_filter.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_file_filter.py
parentb3d031a913814900467358b2adf20a148bf6de1a (diff)
downloadranger-916c239014b95f02bf045f8de0488d7614126edf.tar.gz
linting: Python 2 compat
Diffstat (limited to 'examples/plugin_file_filter.py')
-rw-r--r--examples/plugin_file_filter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/plugin_file_filter.py b/examples/plugin_file_filter.py
index 486e59d9..aece68f8 100644
--- a/examples/plugin_file_filter.py
+++ b/examples/plugin_file_filter.py
@@ -13,11 +13,11 @@ HIDE_FILES = ("/boot", "/sbin", "/proc", "/sys")
 
 
 # Define a new one
-def custom_accept_file(file, filters):
-    if not file.fm.settings.show_hidden and file.path in HIDE_FILES:
+def custom_accept_file(fobj, filters):
+    if not fobj.fm.settings.show_hidden and fobj.path in HIDE_FILES:
         return False
     else:
-        return ACCEPT_FILE_OLD(file, filters)
+        return ACCEPT_FILE_OLD(fobj, filters)
 
 
 # Overwrite the old function