diff options
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 5 |
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__': |