Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a2644da

Browse files
authored
Merge pull request #1748 from EliahKagan/setup-locale
Always read metadata files as UTF-8 in setup.py
2 parents 5f86515 + 6727d0e commit a2644da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎setup.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
import os
88
import sys
99

10-
with open(os.path.join(os.path.dirname(__file__), "VERSION")) as ver_file:
10+
with open(os.path.join(os.path.dirname(__file__), "VERSION"), encoding="utf-8") as ver_file:
1111
VERSION = ver_file.readline().strip()
1212

13-
with open("requirements.txt") as reqs_file:
13+
with open("requirements.txt", encoding="utf-8") as reqs_file:
1414
requirements = reqs_file.read().splitlines()
1515

16-
with open("test-requirements.txt") as reqs_file:
16+
with open("test-requirements.txt", encoding="utf-8") as reqs_file:
1717
test_requirements = reqs_file.read().splitlines()
1818

19-
with open("README.md") as rm_file:
19+
with open("README.md", encoding="utf-8") as rm_file:
2020
long_description = rm_file.read()
2121

2222

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /