mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
committed by
Christian Decker
parent
ca7864f2f3
commit
3028964687
@@ -1,8 +1,9 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
import lightning
|
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()
|
long_description = f.read()
|
||||||
|
|
||||||
setup(name='pylightning',
|
setup(name='pylightning',
|
||||||
|
|||||||
Reference in New Issue
Block a user