diff options
author | hut <hut@lavabit.com> | 2013-02-22 04:46:09 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-22 04:46:09 +0100 |
commit | bf6a3d6d6c11a85c37322e713b3c7a6eb2a484fc (patch) | |
tree | 776b05d2e7ed9ae03a3fb1115b8ae023e5bebbdd /examples/plugin_hello_world.py | |
parent | 4d48d33ca5529464dadbb2fc70888da4cd9d24fa (diff) | |
parent | c1138eb006c6daaa9b88204b0695f18d55e027dc (diff) | |
download | ranger-bf6a3d6d6c11a85c37322e713b3c7a6eb2a484fc.tar.gz |
Merge branch 'master' into vcs
Conflicts: ranger/gui/widgets/browsercolumn.py
Diffstat (limited to 'examples/plugin_hello_world.py')
-rw-r--r-- | examples/plugin_hello_world.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/plugin_hello_world.py b/examples/plugin_hello_world.py index 187f428e..e43eb61d 100644 --- a/examples/plugin_hello_world.py +++ b/examples/plugin_hello_world.py @@ -11,11 +11,11 @@ old_hook_ready = ranger.api.hook_ready # Create a replacement for the hook that... def hook_ready(fm): - # ...does the desired action... - fm.notify("Hello World") - # ...and calls the saved hook. If you don't care about the return value, simply - # return the return value of the previous hook to be on the safe side. - return old_hook_ready(fm) + # ...does the desired action... + fm.notify("Hello World") + # ...and calls the saved hook. If you don't care about the return value, + # simply return the return value of the previous hook to be safe. + return old_hook_ready(fm) # Finally, "monkey patch" the existing hook_ready function with our replacement: ranger.api.hook_ready = hook_ready |