diff options
author | Martin Panter <vadmium+py@gmail.com> | 2015-11-06 00:51:38 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2015-11-06 00:51:38 +0000 |
commit | 98da9d0e0de8300e1362aacb213e450c977d28dc (patch) | |
tree | 910b479dfe85ebc23dc32630c47a3bd7452c4a8f /Lib/pydoc.py | |
parent | 7931be403d6f616777e4a46cf43ee0bd21374889 (diff) | |
parent | 9ad0aae6566311c6982a20955381cda5a2954519 (diff) | |
download | cpython-git-98da9d0e0de8300e1362aacb213e450c977d28dc.tar.gz |
Issue #18010: Merge pydoc web search fix from 3.4 into 3.5
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index ee558bfea3..a9c04f0728 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -2359,7 +2359,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): |