MCPcopy Index your code
hub / github.com/ipython/ipython / preclean_input

Method preclean_input

IPython/terminal/magics.py:60–64  ·  view source on GitHub ↗
(self, block)

Source from the content-addressed store, hash-verified

58 self.shell.using_paste_magics = False
59
60 def preclean_input(self, block):
61 lines = block.splitlines()
62 while lines and not lines[0].strip():
63 lines = lines[1:]
64 return strip_email_quotes('\n'.join(lines))
65
66 def rerun_pasted(self, name='pasted_block'):
67 """ Rerun a previously pasted command.

Callers 1

store_or_executeMethod · 0.95

Calls 1

strip_email_quotesFunction · 0.90

Tested by

no test coverage detected