Use builtin open() in setup.py (#1120)

This commit is contained in:
Mickaël Schoentgen 2021-08-05 20:56:59 +02:00 committed by GitHub
parent a66af2497a
commit da47e37c44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
# This is purely the result of trial and error.
import sys
import codecs
from setuptools import setup, find_packages
@ -55,7 +54,7 @@ extras_require = {
def long_description():
with codecs.open('README.rst', encoding='utf8') as f:
with open('README.rst', encoding='utf-8') as f:
return f.read()