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
91343075
Kaydet (Commit)
91343075
authored
Tem 25, 2006
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
3075e16c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pkgutil.py
Lib/pkgutil.py
+3
-3
No files found.
Lib/pkgutil.py
Dosyayı görüntüle @
91343075
...
@@ -71,7 +71,7 @@ def simplegeneric(func):
...
@@ -71,7 +71,7 @@ def simplegeneric(func):
def
walk_packages
(
path
=
None
,
prefix
=
''
,
onerror
=
None
):
def
walk_packages
(
path
=
None
,
prefix
=
''
,
onerror
=
None
):
"""Yields (module_loader, name, ispkg) for all modules recursively
"""Yields (module_loader, name, ispkg) for all modules recursively
on path, or, if path is None, all accessible modules.
on path, or, if path is None, all accessible modules.
'path' should be either None or a list of paths to look for
'path' should be either None or a list of paths to look for
modules in.
modules in.
...
@@ -81,7 +81,7 @@ def walk_packages(path=None, prefix='', onerror=None):
...
@@ -81,7 +81,7 @@ def walk_packages(path=None, prefix='', onerror=None):
Note that this function must import all *packages* (NOT all
Note that this function must import all *packages* (NOT all
modules!) on the given path, in order to access the __path__
modules!) on the given path, in order to access the __path__
attribute to find submodules.
attribute to find submodules.
'onerror' is a function which gets called with one argument (the
'onerror' is a function which gets called with one argument (the
name of the package which was being imported) if an ImportError
name of the package which was being imported) if an ImportError
occurs trying to import a package. By default the ImportError is
occurs trying to import a package. By default the ImportError is
...
@@ -126,7 +126,7 @@ def iter_modules(path=None, prefix=''):
...
@@ -126,7 +126,7 @@ def iter_modules(path=None, prefix=''):
'prefix' is a string to output on the front of every module name
'prefix' is a string to output on the front of every module name
on output.
on output.
"""
"""
if
path
is
None
:
if
path
is
None
:
importers
=
iter_importers
()
importers
=
iter_importers
()
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