Skip to content

Commit 228c453

Browse files
author
marienz
committed
Remove unused "idle" argument from repl.Repl and fix documentation.
1 parent 973e82a commit 228c453

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

bpython/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def make_colors(config):
237237
class CLIRepl(Repl):
238238

239239
def __init__(self, scr, interp, statusbar, config, idle=None):
240-
Repl.__init__(self, interp, config, idle)
240+
Repl.__init__(self, interp, config)
241241
interp.writetb = self.writetb
242242
self.scr = scr
243243
self.list_win = newwin(get_colpair(config, 'background'), 1, 1, 1, 1)

bpython/repl.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,13 @@ class Repl(object):
270270
XXX Subclasses should implement echo, current_line, cw
271271
"""
272272

273-
def __init__(self, interp, config, idle=None):
274-
"""Initialise the repl with, unfortunately, a curses screen passed to
275-
it. This needs to be split up so the curses crap isn't in here.
273+
def __init__(self, interp, config):
274+
"""Initialise the repl.
276275
277276
interp is a Python code.InteractiveInterpreter instance
278277
279-
The optional 'idle' parameter is a function that the repl call while
280-
it's blocking (waiting for keypresses). This, again, should be in a
281-
different class"""
278+
config is a populated bpython.config.Struct.
279+
"""
282280

283281
self.config = config
284282
self.cut_buffer = ''

0 commit comments

Comments
 (0)