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/crypt.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/crypt.rst')
-rw-r--r-- | Doc/library/crypt.rst | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Doc/library/crypt.rst b/Doc/library/crypt.rst index 8840fc7..7e0cb9c 100644 --- a/Doc/library/crypt.rst +++ b/Doc/library/crypt.rst @@ -47,14 +47,8 @@ A simple example illustrating typical use:: import crypt, getpass, pwd - def raw_input(prompt): - import sys - sys.stdout.write(prompt) - sys.stdout.flush() - return sys.stdin.readline() - def login(): - username = raw_input('Python login:') + username = input('Python login:') cryptedpasswd = pwd.getpwnam(username)[1] if cryptedpasswd: if cryptedpasswd == 'x' or cryptedpasswd == '*': |