diff options
author | Guido van Rossum <guido@python.org> | 2008-01-02 03:52:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2008-01-02 03:52:38 (GMT) |
commit | 7c086c0037a35ccbb9a78db245572c05e54425e7 (patch) | |
tree | 714377941e40201b7afb2b4645b0e6b25ed61510 | |
parent | 83210b9ea032798ec36e3630b261f262526c5f97 (diff) | |
download | cpython-7c086c0037a35ccbb9a78db245572c05e54425e7.zip cpython-7c086c0037a35ccbb9a78db245572c05e54425e7.tar.gz cpython-7c086c0037a35ccbb9a78db245572c05e54425e7.tar.bz2 |
Get rid of raw_input() emulation, use its reincarnation as input().
See Issue 1707.
-rwxr-xr-x | Lib/pydoc.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index d94c3d3..1bab8e3 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1532,11 +1532,6 @@ def writedocs(dir, pkgpath='', done=None): writedoc(modname) return -def raw_input(prompt): - sys.stdout.write(prompt) - sys.stdout.flush() - return sys.stdin.readline() - class Helper: keywords = { 'and': 'BOOLEAN', @@ -1706,9 +1701,9 @@ has the same effect as typing a particular string at the help> prompt. self.help(request) def getline(self, prompt): - """Read one line, using raw_input when available.""" + """Read one line, using input() when appropriate.""" if self.input is sys.stdin: - return raw_input(prompt) + return input(prompt) else: self.output.write(prompt) self.output.flush() |