##// END OF EJS Templates
Remove input_prefilter hook...
Thomas Kluyver -
Show More
@@ -0,0 +1,4 b''
1 * The ``input_prefilter`` hook has been removed, as it was never
2 actually used by the code. The input transformer system offers much
3 more powerful APIs to work with input code. See
4 :doc:`/config/inputtransforms` for details.
@@ -45,7 +45,7 b' from IPython.core.error import TryNext'
45 # but over time we'll move here all the public API for user-accessible things.
45 # but over time we'll move here all the public API for user-accessible things.
46
46
47 __all__ = ['editor', 'fix_error_editor', 'synchronize_with_editor',
47 __all__ = ['editor', 'fix_error_editor', 'synchronize_with_editor',
48 'input_prefilter', 'shutdown_hook', 'late_startup_hook',
48 'shutdown_hook', 'late_startup_hook',
49 'show_in_pager','pre_prompt_hook',
49 'show_in_pager','pre_prompt_hook',
50 'pre_run_code_hook', 'clipboard_get']
50 'pre_run_code_hook', 'clipboard_get']
51
51
@@ -151,21 +151,6 b' class CommandChainDispatcher:'
151 return iter(self.chain)
151 return iter(self.chain)
152
152
153
153
154 def input_prefilter(self,line):
155 """ Default input prefilter
156
157 This returns the line as unchanged, so that the interpreter
158 knows that nothing was done and proceeds with "classic" prefiltering
159 (%magics, !shell commands etc.).
160
161 Note that leading whitespace is not passed to this hook. Prefilter
162 can't alter indentation.
163
164 """
165 #print "attempt to rewrite",line #dbg
166 return line
167
168
169 def shutdown_hook(self):
154 def shutdown_hook(self):
170 """ default shutdown hook
155 """ default shutdown hook
171
156
General Comments 0
You need to be logged in to leave comments. Login now