summary refs log tree commit diff stats
path: root/examples/plugin_chmod_keybindings.py
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2016-12-21 05:06:55 +0100
committernfnty <git@nfnty.se>2017-01-17 05:59:02 +0100
commitb3d031a913814900467358b2adf20a148bf6de1a (patch)
tree6f5b435817ec9cbe850fb73485a7e6c77da28c14 /examples/plugin_chmod_keybindings.py
parent76791a70467d7223a966aa9f12f5583b01d704a8 (diff)
downloadranger-b3d031a913814900467358b2adf20a148bf6de1a.tar.gz
linting: pylint and flake8
Diffstat (limited to 'examples/plugin_chmod_keybindings.py')
-rw-r--r--examples/plugin_chmod_keybindings.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/plugin_chmod_keybindings.py b/examples/plugin_chmod_keybindings.py
index 63f42b0e..72e90121 100644
--- a/examples/plugin_chmod_keybindings.py
+++ b/examples/plugin_chmod_keybindings.py
@@ -5,11 +5,13 @@
 # for the "chmod" command.
 
 import ranger.api
-old_hook_init = ranger.api.hook_init
+
+
+HOOK_INIT_OLD = ranger.api.hook_init
 
 
 def hook_init(fm):
-    old_hook_init(fm)
+    HOOK_INIT_OLD(fm)
 
     # Generate key bindings for the chmod command
     command = "map {0}{1}{2} shell -d chmod {1}{0}{2} %s"
@@ -18,4 +20,5 @@ def hook_init(fm):
             fm.execute_console(command.format('-', mode, perm))
             fm.execute_console(command.format('+', mode, perm))
 
+
 ranger.api.hook_init = hook_init
='n43' href='#n43'>43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108