Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b40aab + f223c53 commit 2934fd6Copy full SHA for 2934fd6
1 file changed
Lib/site.py
@@ -465,7 +465,9 @@ def venv(known_paths):
465
config_line = re.compile(CONFIG_LINE)
466
virtual_conf = candidate_confs[0]
467
system_site = "true"
468
- with open(virtual_conf) as f:
+ # Issue 25185: Use UTF-8, as that's what the venv module uses when
469
+ # writing the file.
470
+ with open(virtual_conf, encoding='utf-8') as f:
471
for line in f:
472
line = line.strip()
473
m = config_line.match(line)
0 commit comments