Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7c086c00
Commit
7c086c00
authored
Jan 02, 2008
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of raw_input() emulation, use its reincarnation as input().
See Issue 1707.
parent
83210b9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
Lib/pydoc.py
Lib/pydoc.py
+2
-7
No files found.
Lib/pydoc.py
View file @
7c086c00
...
...
@@ -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 availabl
e."""
"""Read one line, using
input() when appropriat
e."""
if
self
.
input
is
sys
.
stdin
:
return
raw_
input
(
prompt
)
return
input
(
prompt
)
else
:
self
.
output
.
write
(
prompt
)
self
.
output
.
flush
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment