From d1a1173ddc315f21a3d468f43ac55aa43d31883d Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 10 Feb 2013 03:28:06 +0100 Subject: replaced tabs with 4 spaces in all python files PEP 8 (Style Guide for Python Code) suggests the use of 4 spaces: http://www.python.org/dev/peps/pep-0008/#indentation If you need to use tools like "git blame", you can use the -w option to ignore this commit entirely. Patches will continue to work if you substitute tabs with 4 spaces everywhere except in the Makefile. --- examples/plugin_chmod_keybindings.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/plugin_chmod_keybindings.py b/examples/plugin_chmod_keybindings.py index 62ca6c58..9c9a0982 100644 --- a/examples/plugin_chmod_keybindings.py +++ b/examples/plugin_chmod_keybindings.py @@ -6,13 +6,13 @@ import ranger.api old_hook_init = ranger.api.hook_init def hook_init(fm): - old_hook_init(fm) + old_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 perm in "rwxXst": - fm.execute_console(command.format('-', mode, perm)) - fm.execute_console(command.format('+', mode, perm)) + # 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 perm in "rwxXst": + fm.execute_console(command.format('-', mode, perm)) + fm.execute_console(command.format('+', mode, perm)) ranger.api.hook_init = hook_init -- cgit 1.4.1-2-gfad0