mirror of
https://github.com/python/cpython.git
synced 2025-07-10 04:45:36 +00:00
Issue #18010: Merge pydoc web search fix from 3.5
This commit is contained in:
commit
e2e0deec45
3 changed files with 38 additions and 7 deletions
|
@ -2370,7 +2370,9 @@ def _url_handler(url, content_type="text/html"):
|
|||
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings('ignore') # ignore problems during import
|
||||
ModuleScanner().run(callback, key)
|
||||
def onerror(modname):
|
||||
pass
|
||||
ModuleScanner().run(callback, key, onerror=onerror)
|
||||
|
||||
# format page
|
||||
def bltinlink(name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue