Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/console/complete_import.py
| Show All 31 Lines | |||||
| Original code was from IPython/Extensions/ipy_completers.py. The following | Original code was from IPython/Extensions/ipy_completers.py. The following | ||||
| changes have been made: | changes have been made: | ||||
| - ported to python3 | - ported to python3 | ||||
| - pep8 polishing | - pep8 polishing | ||||
| - limit list of modules to prefix in case of "from w" | - limit list of modules to prefix in case of "from w" | ||||
| - sorted modules | - sorted modules | ||||
| - added sphinx documentation | - added sphinx documentation | ||||
| - complete() returns a blank list of the module isnt found | - complete() returns a blank list of the module isn't found | ||||
| """ | """ | ||||
| import os | import os | ||||
| import sys | import sys | ||||
| TIMEOUT_STORAGE = 3 # Time in secs after which the root-modules will be stored | TIMEOUT_STORAGE = 3 # Time in secs after which the root-modules will be stored | ||||
| TIMEOUT_GIVEUP = 20 # Time in secs after which we give up | TIMEOUT_GIVEUP = 20 # Time in secs after which we give up | ||||
| ▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines | |||||