Skip to content

Commit d80d0fc

Browse files
committed
Set writetb on repls own interpreter instance
1 parent 348113a commit d80d0fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bpython/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class CLIRepl(repl.Repl):
252252

253253
def __init__(self, scr, interp, statusbar, config, idle=None):
254254
repl.Repl.__init__(self, interp, config)
255-
interp.writetb = self.writetb
255+
self.interp.writetb = self.writetb
256256
self.scr = scr
257257
self.stdout_hist = ''
258258
self.list_win = newwin(get_colpair(config, 'background'), 1, 1, 1, 1)

bpython/gtk_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class ReplWidget(gtk.TextView, repl.Repl):
325325
def __init__(self, interpreter, config):
326326
gtk.TextView.__init__(self)
327327
repl.Repl.__init__(self, interpreter, config)
328-
interpreter.writetb = self.writetb
328+
self.interp.writetb = self.writetb
329329
self.editing = Nested()
330330
self.reset_indent = False
331331
self.modify_font(pango.FontDescription(self.config.gtk_font))

0 commit comments

Comments
 (0)