| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -253,13 +253,12 @@ def raw_input(self, prompt=""): | |||
| 253 | 253 | The returned line does not include the trailing newline. | |
| 254 | 254 | When the user enters the EOF key sequence, EOFError is raised. | |
| 255 | 255 | ||
| 256 | - The base implementation uses sys.stdin.readline(); a subclass | ||
| 257 | - may replace this with a different implementation. | ||
| 256 | + The base implementation uses the built-in function | ||
| 257 | + input(); a subclass may replace this with a different | ||
| 258 | + implementation. | ||
| 258 | 259 | ||
| 259 | 260 | """ | |
| 260 | - sys.stdout.write(prompt) | ||
| 261 | - sys.stdout.flush() | ||
| 262 | - return sys.stdin.readline() | ||
| 261 | + return input(prompt) | ||
| 263 | 262 | ||
| 264 | 263 | ||
| 265 | 264 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments