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
0096fb57
Kaydet (Commit)
0096fb57
authored
Eki 06, 2011
tarafından
Ned Deily
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #7425: Prevent pydoc -k failures due to module import errors.
(Backport to 2.7 of existing 3.x fix)
üst
ac6874c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
pydoc.py
Lib/pydoc.py
+6
-5
No files found.
Lib/pydoc.py
Dosyayı görüntüle @
0096fb57
...
...
@@ -52,7 +52,7 @@ Richard Chamberlain, for the first implementation of textdoc.
# the current directory is changed with os.chdir(), an incorrect
# path will be displayed.
import
sys
,
imp
,
os
,
re
,
types
,
inspect
,
__builtin__
,
pkgutil
import
sys
,
imp
,
os
,
re
,
types
,
inspect
,
__builtin__
,
pkgutil
,
warnings
from
repr
import
Repr
from
string
import
expandtabs
,
find
,
join
,
lower
,
split
,
strip
,
rfind
,
rstrip
from
traceback
import
extract_tb
...
...
@@ -1968,10 +1968,11 @@ def apropos(key):
if
modname
[
-
9
:]
==
'.__init__'
:
modname
=
modname
[:
-
9
]
+
' (package)'
print
modname
,
desc
and
'- '
+
desc
try
:
import
warnings
except
ImportError
:
pass
else
:
warnings
.
filterwarnings
(
'ignore'
)
# ignore problems during import
ModuleScanner
()
.
run
(
callback
,
key
)
def
onerror
(
modname
):
pass
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
'ignore'
)
# ignore problems during import
ModuleScanner
()
.
run
(
callback
,
key
,
onerror
=
onerror
)
# --------------------------------------------------- web browser interface
...
...
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