mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
Specify encoding when dealing with files
This commit is contained in:
parent
e1f7a1ccf3
commit
37f9e12b93
3
setup.py
3
setup.py
@ -24,7 +24,8 @@ classifiers = [
|
||||
]
|
||||
|
||||
current_dir = os.path.dirname(__file__)
|
||||
README_contents = open(os.path.join(current_dir, 'README.md')).read()
|
||||
README_contents = open(os.path.join(current_dir, 'README.md'),
|
||||
encoding='utf-8').read()
|
||||
doclines = README_contents.split("\n")
|
||||
dependencies = ['ftfy >= 4', 'msgpack-python', 'langcodes', 'regex >= 2015']
|
||||
if sys.version_info < (3, 4):
|
||||
|
Loading…
Reference in New Issue
Block a user