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

Function sii

IPython/core/tests/test_magic.py:1182–1184  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1180
1181def test_strip_initial_indent():
1182 def sii(s):
1183 lines = s.splitlines()
1184 return '\n'.join(code.strip_initial_indent(lines))
1185
1186 nt.assert_equal(sii(" a = 1\nb = 2"), "a = 1\nb = 2")
1187 nt.assert_equal(sii(" a\n b\nc"), "a\n b\nc")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected