Skip to content

Commit

Permalink
Use io.open() instead of codecs.open()
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Aug 5, 2021
1 parent 49846e0 commit e2decf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import glob
import itertools
import os.path
from codecs import open
from io import open

from setuptools import setup, Extension

Expand Down Expand Up @@ -34,8 +34,8 @@

DESCRIPTION = __doc__
# TODO: Switch back to builtin `open(FILE, encoding="utf-8")` when dropping Python 2.7 support
with open("README.rst", mode="r", encoding="utf-8") as f1, open(
"CHANGES.rst", mode="r", encoding="utf-8"
with open("README.rst", encoding="utf-8") as f1, open(
"CHANGES.rst", encoding="utf-8"
) as f2:
LONG_DESCRIPTION = f1.read() + f2.read()
LICENSE = "MIT"
Expand Down

0 comments on commit e2decf4

Please sign in to comment.