summary refs log tree commit diff stats
path: root/examples/plugin_chmod_keybindings.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-22 03:09:08 +0100
committerhut <hut@lavabit.com>2013-02-22 03:09:49 +0100
commit33aeef8e9fe3891723a2d2fe450859c46cb572ab (patch)
treef01a08b0545f26272a1e979996956a07df467649 /examples/plugin_chmod_keybindings.py
parent240f7d0573108e7843113dd2609c06b1ba26caae (diff)
downloadranger-33aeef8e9fe3891723a2d2fe450859c46cb572ab.tar.gz
examples/plugin_chmod_keybindings.py: fixed crash
Diffstat (limited to 'examples/plugin_chmod_keybindings.py')
-rw-r--r--examples/plugin_chmod_keybindings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/plugin_chmod_keybindings.py b/examples/plugin_chmod_keybindings.py
index 9c9a0982..f26cb3e3 100644
--- a/examples/plugin_chmod_keybindings.py
+++ b/examples/plugin_chmod_keybindings.py
@@ -10,7 +10,7 @@ def hook_init(fm):
 
     # Generate key bindings for the chmod command
     command = "map {0}{1}{2} shell -d chmod {1}{0}{2} %s"
-    for mode in list('ugoa') + '':
+    for mode in list('ugoa') + ['']:
         for perm in "rwxXst":
             fm.execute_console(command.format('-', mode, perm))
             fm.execute_console(command.format('+', mode, perm))