Movatterモバイル変換


[0]ホーム

URL:


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

Commita2644da

Browse files
authored
Merge pull request#1748 from EliahKagan/setup-locale
Always read metadata files as UTF-8 in setup.py
2 parents5f86515 +6727d0e commita2644da

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
importos
88
importsys
99

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

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

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

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

2222

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp