Skip to content

Commit c89f5b2

Browse files
committed
Fix for python 2.7
1 parent 19309d9 commit c89f5b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import sys
22
import os
33
import re
4+
import io
45

56
try:
67
from setuptools import setup
@@ -16,8 +17,9 @@
1617
if sys.version_info.major > 2:
1718
tests_require.append("mypy")
1819

19-
with open("pypi.md", "r", encoding="utf-8") as fh:
20-
long_description = fh.read()
20+
with io.open("PYPI.md", encoding="utf-8") as f:
21+
long_description = f.read()
22+
2123

2224
setup(
2325
name="tinify",

0 commit comments

Comments
 (0)