We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fb6059 commit cbe0537Copy full SHA for cbe0537
1 file changed
pysrc/juliacall/__main__.py
@@ -16,13 +16,12 @@
16
continue
17
except EOFError:
18
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}")
+ if sline := line.strip():
+ try:
+ result = Main.seval(sline)
+ if result is not None:
+ Main.display(result)
+ except Exception as e:
+ print(f"{RED}ERROR:{RESET} {e}")
+ print()
28
0 commit comments