Show More
@@ -12,7 +12,7 b' ipy_profile_PROFILENAME etc.' | |||||
12 |
|
12 | |||
13 | """ |
|
13 | """ | |
14 |
|
14 | |||
15 | import IPython.rlineimpl as readline |
|
15 | import IPython.utils.rlineimpl as readline | |
16 | from IPython.core import ipapi |
|
16 | from IPython.core import ipapi | |
17 | ip = ipapi.get() |
|
17 | ip = ipapi.get() | |
18 |
|
18 |
@@ -67,7 +67,7 b' def attr_matches(self, text):' | |||||
67 | return res |
|
67 | return res | |
68 |
|
68 | |||
69 | def main(): |
|
69 | def main(): | |
70 | import IPython.rlineimpl as readline |
|
70 | import IPython.utils.rlineimpl as readline | |
71 | readline.set_completer_delims(" \n\t") |
|
71 | readline.set_completer_delims(" \n\t") | |
72 | # monkeypatch - the code will be folded to normal completer later on |
|
72 | # monkeypatch - the code will be folded to normal completer later on | |
73 | import IPython.core.completer |
|
73 | import IPython.core.completer |
@@ -70,7 +70,7 b' import os' | |||||
70 | import re |
|
70 | import re | |
71 | import shlex |
|
71 | import shlex | |
72 | import sys |
|
72 | import sys | |
73 | import IPython.rlineimpl as readline |
|
73 | import IPython.utils.rlineimpl as readline | |
74 | import itertools |
|
74 | import itertools | |
75 | from IPython.utils.ipstruct import Struct |
|
75 | from IPython.utils.ipstruct import Struct | |
76 | from IPython.core import ipapi |
|
76 | from IPython.core import ipapi |
@@ -1416,7 +1416,7 b' class InteractiveShell(object,Magic):' | |||||
1416 | """Command history completion/saving/reloading.""" |
|
1416 | """Command history completion/saving/reloading.""" | |
1417 |
|
1417 | |||
1418 |
|
1418 | |||
1419 | import IPython.rlineimpl as readline |
|
1419 | import IPython.utils.rlineimpl as readline | |
1420 |
|
1420 | |||
1421 | if not readline.have_readline: |
|
1421 | if not readline.have_readline: | |
1422 | self.has_readline = 0 |
|
1422 | self.has_readline = 0 |
@@ -2462,7 +2462,7 b' Currently the magic system has the following functions:\\n"""' | |||||
2462 | # local shortcut |
|
2462 | # local shortcut | |
2463 | shell = self.shell |
|
2463 | shell = self.shell | |
2464 |
|
2464 | |||
2465 | import IPython.rlineimpl as readline |
|
2465 | import IPython.utils.rlineimpl as readline | |
2466 |
|
2466 | |||
2467 | if not readline.have_readline and sys.platform == "win32": |
|
2467 | if not readline.have_readline and sys.platform == "win32": | |
2468 | msg = """\ |
|
2468 | msg = """\ |
@@ -112,7 +112,7 b' class IOTerm:' | |||||
112 | # Global variable to be used for all I/O |
|
112 | # Global variable to be used for all I/O | |
113 | Term = IOTerm() |
|
113 | Term = IOTerm() | |
114 |
|
114 | |||
115 | import IPython.rlineimpl as readline |
|
115 | import IPython.utils.rlineimpl as readline | |
116 | # Remake Term to use the readline i/o facilities |
|
116 | # Remake Term to use the readline i/o facilities | |
117 | if sys.platform == 'win32' and readline.have_readline: |
|
117 | if sys.platform == 'win32' and readline.have_readline: | |
118 |
|
118 |
@@ -1,7 +1,7 b'' | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """ Imports and provides the 'correct' version of readline for the platform. |
|
2 | """ Imports and provides the 'correct' version of readline for the platform. | |
3 |
|
3 | |||
4 | Readline is used throughout IPython as 'import IPython.rlineimpl as readline'. |
|
4 | Readline is used throughout IPython as 'import IPython.utils.rlineimpl as readline'. | |
5 |
|
5 | |||
6 | In addition to normal readline stuff, this module provides have_readline |
|
6 | In addition to normal readline stuff, this module provides have_readline | |
7 | boolean and _outputfile variable used in genutils. |
|
7 | boolean and _outputfile variable used in genutils. |
General Comments 0
You need to be logged in to leave comments.
Login now