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
497331fa
Kaydet (Commit)
497331fa
authored
Mar 20, 2004
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix how line endings were handled when iterating over a .pth file by stripping
all whitespace at the end of the path line.
üst
d54357d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
site.py
Lib/site.py
+1
-2
No files found.
Lib/site.py
Dosyayı görüntüle @
497331fa
...
@@ -148,8 +148,7 @@ def addpackage(sitedir, name):
...
@@ -148,8 +148,7 @@ def addpackage(sitedir, name):
if
dir
.
startswith
(
"import"
):
if
dir
.
startswith
(
"import"
):
exec
dir
exec
dir
continue
continue
if
dir
[
-
1
]
==
'
\n
'
:
dir
=
dir
.
rstrip
()
dir
=
dir
[:
-
1
]
dir
,
dircase
=
makepath
(
sitedir
,
dir
)
dir
,
dircase
=
makepath
(
sitedir
,
dir
)
if
not
dircase
in
_dirs_in_sys_path
and
os
.
path
.
exists
(
dir
):
if
not
dircase
in
_dirs_in_sys_path
and
os
.
path
.
exists
(
dir
):
sys
.
path
.
append
(
dir
)
sys
.
path
.
append
(
dir
)
...
...
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