summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rwxr-xr-xpython/interpreter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/interpreter.py b/python/interpreter.py
index 01c9d4d..dae4d59 100755
--- a/python/interpreter.py
+++ b/python/interpreter.py
@@ -70,7 +70,7 @@ class MyConsole(code.InteractiveConsole):
except KeyboardInterrupt:
prompt = '>>> '
buffer = []
- self.write('^C\n')
+ self.write('\n')
except EOFError:
break
@@ -79,6 +79,7 @@ class MyConsole(code.InteractiveConsole):
exec(code, self.locals)
except KeyboardInterrupt:
# Don't show traceback on SIGINT.
+ self.write('^C')
raise
except:
self.showtraceback()