Skip to content

Commit

Permalink
Merge pull request #690 from awesto/releases/0.11.x
Browse files Browse the repository at this point in the history
use io.open to read README.md file
  • Loading branch information
jrief committed Nov 22, 2017
2 parents 507cae7 + db943e9 commit 73dcf63
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@
from __future__ import unicode_literals

from setuptools import setup, find_packages
import sys
import shop
try:
from pypandoc import convert
except ImportError:
import io

def convert(filename, fmt):
if sys.version_info[0] < 3:
with open(filename) as fd:
return fd.read()
else:
with open(filename, encoding="utf-8") as fd:
return fd.read()
with io.open(filename, encoding='utf-8') as fd:
return fd.read()

CLASSIFIERS = [
'Environment :: Web Environment',
Expand Down

0 comments on commit 73dcf63

Please sign in to comment.