mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
fixup! pylightning: Added a tiny library for python plugins
This commit is contained in:
parent
25ca49c444
commit
4f16044404
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ import sys
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import inspect
|
import inspect
|
||||||
|
import re
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
|
||||||
|
@ -241,6 +242,7 @@ 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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue