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
67f87065
Kaydet (Commit)
67f87065
authored
Tem 21, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19629: Fix support.rmtree(), use os.lstat() to check if the file is a
directory, not os.path.isdir()
üst
0dee8ad5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
__init__.py
Lib/test/support/__init__.py
+7
-1
No files found.
Lib/test/support/__init__.py
Dosyayı görüntüle @
67f87065
...
@@ -316,7 +316,13 @@ if sys.platform.startswith("win"):
...
@@ -316,7 +316,13 @@ if sys.platform.startswith("win"):
def
_rmtree_inner
(
path
):
def
_rmtree_inner
(
path
):
for
name
in
os
.
listdir
(
path
):
for
name
in
os
.
listdir
(
path
):
fullname
=
os
.
path
.
join
(
path
,
name
)
fullname
=
os
.
path
.
join
(
path
,
name
)
if
os
.
path
.
isdir
(
fullname
):
try
:
mode
=
os
.
lstat
(
fullname
)
.
st_mode
except
OSError
as
exc
:
print
(
"support.rmtree(): os.lstat(
%
r) failed with
%
s"
%
(
fullname
,
exc
),
file
=
sys
.
__stderr__
)
mode
=
0
if
stat
.
S_ISDIR
(
mode
):
_waitfor
(
_rmtree_inner
,
fullname
,
waitall
=
True
)
_waitfor
(
_rmtree_inner
,
fullname
,
waitall
=
True
)
os
.
rmdir
(
fullname
)
os
.
rmdir
(
fullname
)
else
:
else
:
...
...
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