aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index f966190ea6d..e593ea93ff4 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3528,11 +3528,13 @@ eventually provide a shell."
3528(defconst python-shell-setup-code 3528(defconst python-shell-setup-code
3529 "\ 3529 "\
3530try: 3530try:
3531 import tty 3531 import termios
3532except ImportError: 3532except ImportError:
3533 pass 3533 pass
3534else: 3534else:
3535 tty.setraw(0)" 3535 attr = termios.tcgetattr(0)
3536 attr[3] &= ~termios.ECHO
3537 termios.tcsetattr(0, termios.TCSADRAIN, attr)"
3536 "Code used to setup the inferior Python processes.") 3538 "Code used to setup the inferior Python processes.")
3537 3539
3538(defconst python-shell-eval-setup-code 3540(defconst python-shell-eval-setup-code