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

Method transformer

tests/test_interactiveshell.py:1053–1061  ·  view source on GitHub ↗
(lines)

Source from the content-addressed store, hash-verified

1051
1052 @staticmethod
1053 def transformer(lines):
1054 for line in lines:
1055 pos = line.find("syntaxerror")
1056 if pos >= 0:
1057 e = SyntaxError('input contains "syntaxerror"')
1058 e.text = line
1059 e.offset = pos + 1
1060 raise e
1061 return lines
1062
1063 def setUp(self):
1064 ip.input_transformers_post.append(self.transformer)

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected