Merge pull request #161 from azmeuk/5>

Restored the 5> in the repl prompt
This commit is contained in:
Windel Bouwman
2018-10-16 23:30:49 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -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()) {