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

@@ -52,7 +52,7 @@ import math
import pickle import pickle
import sys import sys
from lightning import LightningRpc from pyln.client import LightningRpc
import dns.resolver import dns.resolver
from bech32 import bech32_decode, CHARSET, convertbits from bech32 import bech32_decode, CHARSET, convertbits

View File

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