File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ def __init__(self, repl):
29
29
self ._repl_reader = ReplReader (repl )
30
30
# this is a hack to detect when we stop processing this input
31
31
self .send_input ('function prompt() {"^"}' )
32
- self .skip_preambula ()
33
32
34
- self .timer = Timer (0.1 , self .update_view_loop )
35
- self .timer .start ()
36
33
self .stop_flag = False
37
34
self .output = ''
38
- # clean-up output, it really should be a part of skip_preambula
35
+ self .timer = Timer (0.1 , self .update_view_loop )
36
+ self .timer .start ()
37
+ # get preambula and eveluation of the prompt
39
38
self .get_output ()
39
+
40
40
self .output_prefix_stripped = True
41
41
self .expected_output_prefix = ''
42
42
self .expected_output_len = 0
@@ -64,15 +64,6 @@ def send_input(self, input):
64
64
65
65
self ._repl .write (input + '\n ' )
66
66
67
- def skip_preambula (self ):
68
- try :
69
- while True :
70
- packet = self ._repl_reader .queue .get_nowait ()
71
- if packet is None :
72
- return False
73
- except queue .Empty :
74
- return True
75
-
76
67
def handle_repl_output (self ):
77
68
"""Returns new data from Repl and bool indicating if Repl is still
78
69
working"""
You can’t perform that action at this time.
0 commit comments