@@ -142,11 +142,11 @@ class Repl(BpythonRepl):
142142 """
143143
144144 ## initialization, cleanup
145- def __init__ (self , locals_ = None , config = None , stuff_a_refresh_request = lambda : None , banner = None , interp = None ):
145+ def __init__ (self , locals_ = None , config = None , request_refresh = lambda : None , banner = None , interp = None ):
146146 """
147147 locals_ is a mapping of locals to pass into the interpreter
148148 config is a bpython config.Struct with config attributes
149- stuff_a_refresh_request is a function that will be called when the Repl
149+ request_refresh is a function that will be called when the Repl
150150 wants to refresh the display, but wants control returned to it afterwards
151151 banner is a string to display briefly in the status bar
152152 interp is an interpreter to use
@@ -173,17 +173,17 @@ def __init__(self, locals_=None, config=None, stuff_a_refresh_request=lambda: No
173173
174174 self .reevaluating = False
175175 self .fake_refresh_requested = False
176- def request_refresh ():
176+ def smarter_request_refresh ():
177177 if self .reevaluating or self .paste_mode :
178178 self .fake_refresh_requested = True
179179 else :
180- stuff_a_refresh_request ()
181- self .stuff_a_refresh_request = request_refresh
180+ request_refresh ()
181+ self .request_refresh = smarter_request_refresh
182182
183183 self .status_bar = StatusBar (banner if config .curtsies_fill_terminal else '' , _ (
184184 " <%s> Rewind <%s> Save <%s> Pastebin <%s> Editor"
185185 ) % (config .undo_key , config .save_key , config .pastebin_key , config .external_editor_key ),
186- stuff_a_refresh_request = self .stuff_a_refresh_request
186+ refresh_request = self .request_refresh
187187 )
188188 self .rl_char_sequences = get_updated_char_sequences (key_dispatch , config )
189189 logging .debug ("starting parent init" )
@@ -920,7 +920,7 @@ def simple_repl():
920920 refreshes = []
921921 def request_refresh ():
922922 refreshes .append (1 )
923- with Repl (stuff_a_refresh_request = request_refresh ) as r :
923+ with Repl (refresh_request = request_refresh ) as r :
924924 r .width = 50
925925 r .height = 10
926926 while True :
0 commit comments