From 4f16044404910b99f0f64ee509f1d0cfe6a42301 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sat, 29 Dec 2018 12:28:52 +0100 Subject: [PATCH] fixup! pylightning: Added a tiny library for python plugins --- contrib/pylightning/lightning/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/pylightning/lightning/plugin.py b/contrib/pylightning/lightning/plugin.py index ad716b064..134f9ee1a 100644 --- a/contrib/pylightning/lightning/plugin.py +++ b/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)