Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2934fd66
Commit
2934fd66
authored
Oct 01, 2015
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Closes #25185: merged fix from 3.4.
parents
0b40aab6
f223c532
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Lib/site.py
Lib/site.py
+3
-1
No files found.
Lib/site.py
View file @
2934fd66
...
@@ -465,7 +465,9 @@ def venv(known_paths):
...
@@ -465,7 +465,9 @@ def venv(known_paths):
config_line = re.compile(CONFIG_LINE)
config_line = re.compile(CONFIG_LINE)
virtual_conf = candidate_confs[0]
virtual_conf = candidate_confs[0]
system_site = "true"
system_site = "true"
with open(virtual_conf) as f:
# Issue 25185: Use UTF-8, as that'
s
what
the
venv
module
uses
when
# writing the file.
with
open
(
virtual_conf
,
encoding
=
'utf-8'
)
as
f
:
for
line
in
f
:
for
line
in
f
:
line
=
line
.
strip
()
line
=
line
.
strip
()
m
=
config_line
.
match
(
line
)
m
=
config_line
.
match
(
line
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment