diff options
author | Georg Brandl <georg@python.org> | 2007-12-02 22:48:17 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-12-02 22:48:17 (GMT) |
commit | 8d5c39240e2717f751d4cba34baf4493bdcf0985 (patch) | |
tree | e261b11315d26599896ebb515d204206852d604d /Doc/library/termios.rst | |
parent | 2b1c592d22c16f3cb810625168ed1ce0c806d004 (diff) | |
download | cpython-8d5c39240e2717f751d4cba34baf4493bdcf0985.zip cpython-8d5c39240e2717f751d4cba34baf4493bdcf0985.tar.gz cpython-8d5c39240e2717f751d4cba34baf4493bdcf0985.tar.bz2 |
Remove all definitions of raw_input() that were still scattered throughout the docs
from the time where there was neither input() nor raw_input().
Diffstat (limited to 'Doc/library/termios.rst')
-rw-r--r-- | Doc/library/termios.rst | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Doc/library/termios.rst b/Doc/library/termios.rst index 695faad..54fb065 100644 --- a/Doc/library/termios.rst +++ b/Doc/library/termios.rst @@ -90,12 +90,6 @@ technique using a separate :func:`tcgetattr` call and a :keyword:`try` ... :keyword:`finally` statement to ensure that the old tty attributes are restored exactly no matter what happens:: - def raw_input(prompt): - import sys - sys.stdout.write(prompt) - sys.stdout.flush() - return sys.stdin.readline() - def getpass(prompt = "Password: "): import termios, sys fd = sys.stdin.fileno() @@ -104,7 +98,7 @@ exactly no matter what happens:: new[3] = new[3] & ~termios.ECHO # lflags try: termios.tcsetattr(fd, termios.TCSADRAIN, new) - passwd = raw_input(prompt) + passwd = input(prompt) finally: termios.tcsetattr(fd, termios.TCSADRAIN, old) return passwd |