mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
pylightning: Fixing incompatibility issue with Python 2.7
Global open doesn't have argument `encoding` in Python 2.7. open from the io package is needed.
This commit is contained in:
parent
ca7864f2f3
commit
3028964687
@ -1,8 +1,9 @@
|
||||
from setuptools import setup
|
||||
import lightning
|
||||
import io
|
||||
|
||||
|
||||
with open('README.md', encoding='utf-8') as f:
|
||||
with io.open('README.md', encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
setup(name='pylightning',
|
||||
|
Loading…
Reference in New Issue
Block a user