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
095ef734
Kaydet (Commit)
095ef734
authored
Şub 09, 2017
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #29513: Fix outdated comment and remove redundand code is os.scandir().
üst
c7a24a73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
posixmodule.c
Modules/posixmodule.c
+3
-7
No files found.
Modules/posixmodule.c
Dosyayı görüntüle @
095ef734
...
...
@@ -11856,7 +11856,6 @@ ScandirIterator_finalize(ScandirIterator *iterator)
}
}
Py_CLEAR
(
iterator
->
path
.
object
);
path_cleanup
(
&
iterator
->
path
);
/* Restore the saved exception. */
...
...
@@ -11968,12 +11967,9 @@ os_scandir_impl(PyObject *module, path_t *path)
#endif
memcpy
(
&
iterator
->
path
,
path
,
sizeof
(
path_t
));
/* path_converter doesn't keep path.object around, so do it
manually for the lifetime of the iterator here (the refcount
is decremented in ScandirIterator_dealloc)
*/
Py_XINCREF
(
iterator
->
path
.
object
);
Py_XINCREF
(
iterator
->
path
.
cleanup
);
/* Move the ownership to iterator->path */
path
->
object
=
NULL
;
path
->
cleanup
=
NULL
;
#ifdef MS_WINDOWS
iterator
->
first_time
=
1
;
...
...
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