summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-11-06 01:08:34 +0000
committerMartin Panter <vadmium+py@gmail.com>2015-11-06 01:08:34 +0000
commite2e0deec45f9dad96aff67cbce0830674feeca0c (patch)
treebe0adcb5d5a5734db150e88d3511cc36154c0d57 /Lib/pydoc.py
parenta2149ed1c0d1b76a6cba0a2c452163360cc0106a (diff)
parent98da9d0e0de8300e1362aacb213e450c977d28dc (diff)
downloadcpython-git-e2e0deec45f9dad96aff67cbce0830674feeca0c.tar.gz
Issue #18010: Merge pydoc web search fix from 3.5
Diffstat (limited to 'Lib/pydoc.py')
-rw-r--r--Lib/pydoc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index f4f253010f..a73298d715 100644
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -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):