Skip to content

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy