Skip to content

Commit f7813b0

Browse files
committed
Get rid of codecs module
Remove the codecs module and replace the obsolete codecs.open by open in Python 3.x
1 parent 7e2e54e commit f7813b0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

setup.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import codecs
21
import os
32

43
from setuptools import find_packages, setup
@@ -10,10 +9,6 @@
109
exec(f.read(), about)
1110

1211

13-
def read(fname):
14-
return codecs.open(os.path.join(base_dir, fname), encoding="utf-8").read()
15-
16-
1712
setup(
1813
name="tikzplotlib",
1914
version=about["__version__"],
@@ -23,7 +18,7 @@ def read(fname):
2318
author_email=about["__email__"],
2419
install_requires=["matplotlib >= 1.4.0", "numpy", "Pillow"],
2520
description="Convert matplotlib figures into TikZ/PGFPlots",
26-
long_description=read("README.md"),
21+
long_description=open("README.md").read(),
2722
long_description_content_type="text/markdown",
2823
license=about["__license__"],
2924
python_requires=">=3",

0 commit comments

Comments
 (0)