Skip to content

Commit

Permalink
Fix the error without specified encoding when compiling (#4246)
Browse files Browse the repository at this point in the history
Fix setup.py error on some platforms
  • Loading branch information
cobaltchang authored and tomchristie committed Jul 5, 2016
1 parent 6ff9840 commit b04bd86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import re
import shutil
import sys
from io import open

from setuptools import setup

Expand All @@ -16,7 +17,7 @@ def read_md(f):
print("warning: pypandoc module not found, could not convert Markdown to RST")

def read_md(f):
return open(f, 'r').read()
return open(f, 'r', encoding='utf-8').read()


def get_version(package):
Expand Down

0 comments on commit b04bd86

Please sign in to comment.