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
390f6c1b
Kaydet (Commit)
390f6c1b
authored
Haz 16, 2013
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge doc/argument name fix
üst
f24fecd4
a269d821
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
importlib.rst
Doc/library/importlib.rst
+1
-1
_bootstrap.py
Lib/importlib/_bootstrap.py
+2
-2
No files found.
Doc/library/importlib.rst
Dosyayı görüntüle @
390f6c1b
...
...
@@ -751,7 +751,7 @@ find and load modules.
The
path
the
finder
will
search
in
.
..
method
::
find_
module
(
fullname
)
..
method
::
find_
loader
(
fullname
)
Attempt
to
find
the
loader
to
handle
*
fullname
*
within
:
attr
:`
path
`.
...
...
Lib/importlib/_bootstrap.py
Dosyayı görüntüle @
390f6c1b
...
...
@@ -1361,12 +1361,12 @@ class FileFinder:
"""
def
__init__
(
self
,
path
,
*
details
):
def
__init__
(
self
,
path
,
*
loader_
details
):
"""Initialize with the path to search on and a variable number of
2-tuples containing the loader and the file suffixes the loader
recognizes."""
loaders
=
[]
for
loader
,
suffixes
in
details
:
for
loader
,
suffixes
in
loader_
details
:
loaders
.
extend
((
suffix
,
loader
)
for
suffix
in
suffixes
)
self
.
_loaders
=
loaders
# Base (directory) path
...
...
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