No more pylightning imports !

```
$ grep -rE '^import lightning$|^from lightning'
```

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
Antoine Poinsot
2020-04-30 10:59:23 +02:00
committed by Christian Decker
parent 810bedddc0
commit bfab383959
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
from pyln.client import Plugin, Millisatoshi
from packaging import version
from collections import namedtuple
import lightning
import pyln.client
import json
from math import floor, log10
import requests
@@ -15,7 +15,7 @@ have_utf8 = False
# __version__ was introduced in 0.0.7.1, with utf8 passthrough support.
try:
if version.parse(lightning.__version__) >= version.parse("0.0.7.1"):
if version.parse(pyln.client.__version__) >= version.parse("0.0.7.1"):
have_utf8 = True
except Exception:
pass