Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
144fff8b
Kaydet (Commit)
144fff8b
authored
Şub 02, 2017
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Closes #29213: Merged fix from 3.6.
üst
7601d780
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
__init__.py
Lib/venv/__init__.py
+4
-6
Activate.ps1
Lib/venv/scripts/nt/Activate.ps1
+1
-1
No files found.
Lib/venv/__init__.py
Dosyayı görüntüle @
144fff8b
...
...
@@ -320,19 +320,17 @@ class EnvBuilder:
dstfile
=
os
.
path
.
join
(
dstdir
,
f
)
with
open
(
srcfile
,
'rb'
)
as
f
:
data
=
f
.
read
()
if
srcfile
.
endswith
(
'.exe'
):
mode
=
'wb'
else
:
mode
=
'w'
if
not
srcfile
.
endswith
(
'.exe'
):
try
:
data
=
data
.
decode
(
'utf-8'
)
data
=
self
.
replace_variables
(
data
,
context
)
except
UnicodeDecodeError
as
e
:
data
=
data
.
encode
(
'utf-8'
)
except
UnicodeError
as
e
:
data
=
None
logger
.
warning
(
'unable to copy script
%
r, '
'may be binary:
%
s'
,
srcfile
,
e
)
if
data
is
not
None
:
with
open
(
dstfile
,
mode
)
as
f
:
with
open
(
dstfile
,
'wb'
)
as
f
:
f
.
write
(
data
)
shutil
.
copymode
(
srcfile
,
dstfile
)
...
...
Lib/venv/scripts/nt/Activate.ps1
Dosyayı görüntüle @
144fff8b
...
...
@@ -26,7 +26,7 @@ function global:deactivate ([switch]$NonDestructive) {
}
deactivate -nondestructive
$env
:VIRTUAL_ENV
=
"__VENV_DIR__"
if
(!
$env
:VIRTUAL_ENV_DISABLE_PROMPT
)
{
...
...
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