Skip to content

Commit

Permalink
Remove readline support
Browse files Browse the repository at this point in the history
It was causing weird input issues.

Resolves #22
  • Loading branch information
iafisher committed Dec 13, 2018
1 parent 7a67de2 commit 8dfe24c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions hera/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
-h, --help Show this message.
-v, --version Show the version.
"""
import readline
import sys
import functools

Expand Down Expand Up @@ -43,15 +42,11 @@ def main(argv=None, vm=None):
ANSI_RED_BOLD = ANSI_RESET = ""

if path == "-":
program = ""
try:
while True:
program += input()
program = sys.stdin.read()
except (IOError, KeyboardInterrupt):
print()
return
except EOFError:
pass
else:
try:
with open(path, "r", encoding="utf-8") as f:
Expand Down

0 comments on commit 8dfe24c

Please sign in to comment.