Issue #18010: Merge pydoc web search fix from 3.5

This commit is contained in:
Martin Panter 2015-11-06 01:08:34 +00:00
commit e2e0deec45
3 changed files with 38 additions and 7 deletions

View file

@ -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):