Skip to content

Commit cbe0537

Browse files
committed
More closely match Julia's REPL
1 parent 0fb6059 commit cbe0537

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pysrc/juliacall/__main__.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@
1616
continue
1717
except EOFError:
1818
break
19-
if not line.strip():
20-
continue
21-
try:
22-
result = Main.seval(line)
23-
if result is not None:
24-
Main.display(result)
25-
print()
26-
except Exception as e:
27-
print(f"{RED}ERROR:{RESET} {e}")
19+
if sline := line.strip():
20+
try:
21+
result = Main.seval(sline)
22+
if result is not None:
23+
Main.display(result)
24+
except Exception as e:
25+
print(f"{RED}ERROR:{RESET} {e}")
26+
print()
2827

0 commit comments

Comments
 (0)