Skip to content

Commit 727f913

Browse files
committed
Open file with UTF-8 encoding
This fixes jxmorris12#13 and jxmorris12#14. Thanks to @AbdealiJK for reporting this.
1 parent f841a52 commit 727f913

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __len__(self):
127127

128128
def get_version():
129129
"""Return version string."""
130-
with open('language_check/__init__.py') as input_file:
130+
with io.open('language_check/__init__.py', encoding='utf-8') as input_file:
131131
for line in input_file:
132132
if line.startswith('__version__'):
133133
return ast.parse(line).body[0].value.s

0 commit comments

Comments
 (0)