Get rid of raw_input() emulation, use its reincarnation as input().
See Issue 1707.
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 @@
         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 @@
             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()