Skip to content

Commit

Permalink
Fix setup.py on windows with non-UTF8 default encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
szha authored and leezu committed Apr 27, 2018
1 parent f9edbfe commit 4cacc7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
import os
import io
import os
import re
import shutil
import sys
Expand All @@ -24,7 +24,7 @@ def find_version(*file_paths):
raise RuntimeError("Unable to find version string.")


readme = open('README.rst').read()
readme = io.open('README.rst', encoding='utf-8').read()

VERSION = find_version('gluonnlp', '__init__.py')

Expand Down

0 comments on commit 4cacc7c

Please sign in to comment.