MCPcopy Create free account
hub / github.com/ipython/ipython / preclean_input

Method preclean_input

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

Source from the content-addressed store, hash-verified

57 self.shell.using_paste_magics = False
58
59 def preclean_input(self, block):
60 lines = block.splitlines()
61 while lines and not lines[0].strip():
62 lines = lines[1:]
63 return strip_email_quotes('\n'.join(lines))
64
65 def rerun_pasted(self, name='pasted_block'):
66 """ 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