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
688a551c
Kaydet (Commit)
688a551c
authored
Agu 10, 2012
tarafından
Philip Jenvey
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix docstring wording
üst
522267e7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
_bootstrap.py
Lib/importlib/_bootstrap.py
+3
-3
importlib.h
Python/importlib.h
+0
-0
No files found.
Lib/importlib/_bootstrap.py
Dosyayı görüntüle @
688a551c
...
...
@@ -731,7 +731,7 @@ class FrozenImporter:
@classmethod
@_requires_frozen
def
is_package
(
cls
,
fullname
):
"""Return if the frozen module is a package."""
"""Return
True
if the frozen module is a package."""
return
_imp
.
is_frozen_package
(
fullname
)
...
...
@@ -1025,7 +1025,7 @@ class SourceFileLoader(FileLoader, SourceLoader):
"""Concrete implementation of SourceLoader using the file system."""
def
path_stats
(
self
,
path
):
"""Return the metadat for the path."""
"""Return the metadat
a
for the path."""
st
=
_os
.
stat
(
path
)
return
{
'mtime'
:
st
.
st_mtime
,
'size'
:
st
.
st_size
}
...
...
@@ -1117,7 +1117,7 @@ class ExtensionFileLoader:
raise
def
is_package
(
self
,
fullname
):
"""Return if the extension module is a package."""
"""Return
True
if the extension module is a package."""
file_name
=
_path_split
(
self
.
path
)[
1
]
return
any
(
file_name
==
'__init__'
+
suffix
for
suffix
in
EXTENSION_SUFFIXES
)
...
...
Python/importlib.h
Dosyayı görüntüle @
688a551c
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