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
efbc4752
Kaydet (Commit)
efbc4752
authored
Eki 03, 2013
tarafından
Eric Snow
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[issue19151] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
üst
60b18340
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
_bootstrap.py
Lib/importlib/_bootstrap.py
+2
-2
NEWS
Misc/NEWS
+3
-0
importlib.h
Python/importlib.h
+0
-0
No files found.
Lib/importlib/_bootstrap.py
Dosyayı görüntüle @
efbc4752
...
...
@@ -781,7 +781,7 @@ class WindowsRegistryFinder:
_os
.
stat
(
filepath
)
except
OSError
:
return
None
for
loader
,
suffixes
,
_
in
_get_supported_file_loaders
():
for
loader
,
suffixes
in
_get_supported_file_loaders
():
if
filepath
.
endswith
(
tuple
(
suffixes
)):
return
loader
(
fullname
,
filepath
)
...
...
@@ -1643,7 +1643,7 @@ def _calc___package__(globals):
def
_get_supported_file_loaders
():
"""Returns a list of file-based module loaders.
Each item is a tuple (loader, suffixes
, allow_packages
).
Each item is a tuple (loader, suffixes).
"""
extensions
=
ExtensionFileLoader
,
_imp
.
extension_suffixes
()
source
=
SourceFileLoader
,
SOURCE_SUFFIXES
...
...
Misc/NEWS
Dosyayı görüntüle @
efbc4752
...
...
@@ -203,6 +203,9 @@ Library
- Issue #18405: Improve the entropy of crypt.mksalt().
- Issue #19151: Fix docstring and use of _get_suppported_file_loaders() to
reflect 2-tuples.
- Issue #18676: Change '
positive
' to '
non
-
negative
' in queue.py put and get
docstrings and ValueError messages. Patch by Zhongyue Luo
...
...
Python/importlib.h
Dosyayı görüntüle @
efbc4752
This diff is collapsed.
Click to expand it.
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