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:
Hampus Sjöberg 2019-04-18 15:11:59 +02:00 committed by Christian Decker
parent ca7864f2f3
commit 3028964687
1 changed files with 2 additions and 1 deletions

View File

@ -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',