Give completions after user has typed 'import ...' or 'from ...
(self,event)
| 273 | # completers |
| 274 | |
| 275 | def module_completer(self,event): |
| 276 | """Give completions after user has typed 'import ...' or 'from ...'""" |
| 277 | |
| 278 | # This works in all versions of python. While 2.5 has |
| 279 | # pkgutil.walk_packages(), that particular routine is fairly dangerous, |
| 280 | # since it imports *EVERYTHING* on sys.path. That is: a) very slow b) full |
| 281 | # of possibly problematic side effects. |
| 282 | # This search the folders in the sys.path for available modules. |
| 283 | |
| 284 | return module_completion(event.line) |
| 285 | |
| 286 | # FIXME: there's a lot of logic common to the run, cd and builtin file |
| 287 | # completers, that is currently reimplemented in each. |
nothing calls this directly
no test coverage detected
searching dependent graphs…