Skip to content

Commit 64772c0

Browse files
committed
Remove runsource overwrite
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent ff1d017 commit 64772c0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

bpython/curtsiesfrontend/interpreter.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ def writetb(self, lines):
9494
self.format(tbtext, lexer)
9595
# TODO for tracebacks get_lexer_by_name("pytb", stripall=True)
9696

97-
if not py3:
98-
def runsource(self, source, filename="<input>", symbol="single",
99-
encode=True):
100-
# TODO: write a test for and implement encoding
101-
with self.timer:
102-
if encode:
103-
source = '#\n%s' % (source,) # dummy line so linenos match
104-
return code.InteractiveInterpreter.runsource(self, source,
105-
filename, symbol)
106-
10797
def format(self, tbtext, lexer):
10898
traceback_informative_formatter = BPythonFormatter(default_colors)
10999
traceback_code_formatter = BPythonFormatter({Token: ('d')})

0 commit comments

Comments
 (0)