From dded3cb8862d91bf20c5f8e4a4dd37b108c7b8ab Mon Sep 17 00:00:00 2001 From: stepshal Date: Thu, 16 Jun 2016 17:44:13 +0700 Subject: Add one blank line where is expected --- examples/plugin_ipc.py | 1 + examples/plugin_linemode.py | 1 + ranger/api/commands.py | 2 ++ ranger/colorschemes/jungle.py | 1 + ranger/config/commands.py | 6 ++++++ ranger/core/actions.py | 5 +++++ ranger/core/fm.py | 1 + ranger/core/loader.py | 3 +++ ranger/core/main.py | 1 + ranger/ext/cached_function.py | 1 + ranger/ext/signals.py | 2 ++ ranger/gui/widgets/pager.py | 1 + tests/ranger/container/test_bookmarks.py | 2 ++ 13 files changed, 27 insertions(+) diff --git a/examples/plugin_ipc.py b/examples/plugin_ipc.py index a9e79205..cfb546fa 100644 --- a/examples/plugin_ipc.py +++ b/examples/plugin_ipc.py @@ -22,6 +22,7 @@ def hook_init(fm): import thread except ImportError: import _thread as thread + def ipc_reader(filepath): while True: with open(filepath, 'r') as fifo: diff --git a/examples/plugin_linemode.py b/examples/plugin_linemode.py index 8a92552e..be34e6c5 100644 --- a/examples/plugin_linemode.py +++ b/examples/plugin_linemode.py @@ -12,5 +12,6 @@ from ranger.core.linemode import LinemodeBase @ranger.api.register_linemode class MyLinemode(LinemodeBase): name = "rot13" + def filetitle(self, file, metadata): return codecs.encode(file.relative_path, "rot_13") diff --git a/ranger/api/commands.py b/ranger/api/commands.py index c3e0a59a..b463a776 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -377,6 +377,7 @@ class FunctionCommand(Command): _based_function = None _object_name = "" _function_name = "unknown" + def execute(self): if not self._based_function: return @@ -431,6 +432,7 @@ class AliasCommand(Command): _object_name = "" _function_name = "unknown" _line = "" + def execute(self): return self._make_cmd().execute() diff --git a/ranger/colorschemes/jungle.py b/ranger/colorschemes/jungle.py index 6a9c3c52..a142cd4f 100644 --- a/ranger/colorschemes/jungle.py +++ b/ranger/colorschemes/jungle.py @@ -6,6 +6,7 @@ from ranger.colorschemes.default import Default class Scheme(Default): progress_bar_color = green + def use(self, context): fg, bg, attr = Default.use(self, context) diff --git a/ranger/config/commands.py b/ranger/config/commands.py index e09e1f10..e98a32a3 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -340,6 +340,7 @@ class set_(Command): Use `:set