summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index d7396f0..9316fff 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -2244,8 +2244,11 @@ def gui():
if self.scanner:
self.scanner.quit = 1
self.scanner = ModuleScanner()
+ def onerror(modname):
+ pass
threading.Thread(target=self.scanner.run,
- args=(self.update, key, self.done)).start()
+ args=(self.update, key, self.done),
+ kwargs=dict(onerror=onerror)).start()
def update(self, path, modname, desc):
if modname[-9:] == '.__init__':