|
@ -295,12 +295,12 @@ class Plugin(object): |
|
|
continue |
|
|
continue |
|
|
|
|
|
|
|
|
doc = inspect.getdoc(func) |
|
|
doc = inspect.getdoc(func) |
|
|
doc = re.sub('\n+', ' ', doc) |
|
|
|
|
|
if not doc: |
|
|
if not doc: |
|
|
self.log( |
|
|
self.log( |
|
|
'RPC method \'{}\' does not have a docstring.'.format(name) |
|
|
'RPC method \'{}\' does not have a docstring.'.format(name) |
|
|
) |
|
|
) |
|
|
doc = "Undocumented RPC method from a plugin." |
|
|
doc = "Undocumented RPC method from a plugin." |
|
|
|
|
|
doc = re.sub('\n+', ' ', doc) |
|
|
|
|
|
|
|
|
methods.append({ |
|
|
methods.append({ |
|
|
'name': name, |
|
|
'name': name, |
|
|