mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Merge pull request #161 from azmeuk/5>
Restored the 5> in the repl prompt
This commit is contained in:
@@ -17,7 +17,7 @@ Or use the interactive shell:
|
||||
|
||||
$ cargo run
|
||||
Welcome to rustpython
|
||||
>>> 2+2
|
||||
>>>>> 2+2
|
||||
4
|
||||
|
||||
<!-- Or use pip to install extra modules:
|
||||
|
||||
@@ -162,7 +162,7 @@ fn run_shell(vm: &mut VirtualMachine) -> PyResult {
|
||||
// Err(_) => ">>>>> ".to_string(),
|
||||
//};
|
||||
|
||||
match rl.readline(">>> ") {
|
||||
match rl.readline(">>>>> ") {
|
||||
Ok(line) => {
|
||||
input.push_str(&line);
|
||||
input.push_str("\n");
|
||||
@@ -179,7 +179,7 @@ fn run_shell(vm: &mut VirtualMachine) -> PyResult {
|
||||
// Ok(value) => objstr::get_value(&value),
|
||||
// Err(_) => "..... ".to_string(),
|
||||
//};
|
||||
match rl.readline("... ") {
|
||||
match rl.readline("..... ") {
|
||||
Ok(line) => {
|
||||
if line.len() == 0 {
|
||||
if shell_exec(vm, &input, vars.clone()) {
|
||||
|
||||
Reference in New Issue
Block a user