File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ fn run_shell(vm: &VirtualMachine, scope: Scope) -> PyResult<()> {
587
587
crate_version!( )
588
588
) ;
589
589
590
- fn print_prompt ( ) {
590
+ fn print_prompt ( vm : & VirtualMachine ) {
591
591
let prompt = get_prompt ( vm, "ps1" ) ;
592
592
let prompt = match prompt {
593
593
Some ( ref s) => s. as_str ( ) ,
@@ -599,7 +599,7 @@ fn run_shell(vm: &VirtualMachine, scope: Scope) -> PyResult<()> {
599
599
600
600
let stdin = io:: stdin ( ) ;
601
601
602
- print_prompt ( ) ;
602
+ print_prompt ( vm ) ;
603
603
for line in stdin. lock ( ) . lines ( ) {
604
604
let mut line = line. expect ( "line failed" ) ;
605
605
line. push_str ( "\n " ) ;
@@ -608,7 +608,7 @@ fn run_shell(vm: &VirtualMachine, scope: Scope) -> PyResult<()> {
608
608
ShellExecResult :: Continue => println ! ( "Unexpected EOF" ) ,
609
609
ShellExecResult :: PyErr ( exc) => print_exception ( vm, & exc) ,
610
610
}
611
- print_prompt ( ) ;
611
+ print_prompt ( vm ) ;
612
612
}
613
613
614
614
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments