Browse Source
fixup! pylightning: Added a tiny library for python plugins
plugin-7
Christian Decker
6 years ago
No known key found for this signature in database
GPG Key ID: 1416D83DC4F0E86D
1 changed files with
2 additions and
0 deletions
-
contrib/pylightning/lightning/plugin.py
|
|
@ -2,6 +2,7 @@ import sys |
|
|
|
import os |
|
|
|
import json |
|
|
|
import inspect |
|
|
|
import re |
|
|
|
import traceback |
|
|
|
|
|
|
|
|
|
|
@ -241,6 +242,7 @@ class Plugin(object): |
|
|
|
continue |
|
|
|
|
|
|
|
doc = inspect.getdoc(func) |
|
|
|
doc = re.sub('\n+', ' ', doc) |
|
|
|
if not doc: |
|
|
|
self.log( |
|
|
|
'RPC method \'{}\' does not have a docstring.'.format(name) |
|
|
|