From 2987d0816ed27f1096f782ce2dbb449e49982333 Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Tue, 6 Oct 2015 17:42:01 +0200 Subject: api/commands.py: Fix the doc extraction from the Actions class methods --- ranger/api/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/api/commands.py b/ranger/api/commands.py index 2cf96a9f..ca713d0c 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -47,7 +47,7 @@ class CommandContainer(object): continue attribute = getattr(obj, attribute_name) if hasattr(attribute, '__call__'): - cmd = type(attribute_name, (FunctionCommand, ), dict()) + cmd = type(attribute_name, (FunctionCommand, ), dict(__doc__=attribute.__doc__)) cmd._based_function = attribute cmd._function_name = attribute.__name__ cmd._object_name = obj.__class__.__name__ -- cgit 1.4.1-2-gfad0