(prompt="")
| 183 | original_input = __builtin__.input |
| 184 | |
| 185 | def raw_input(prompt=""): |
| 186 | # the original raw_input would only remove a trailing \n, so, at |
| 187 | # this point if we had a \r\n the \r would remain (which is valid for eclipse) |
| 188 | # so, let's remove the remaining \r which python didn't expect. |
| 189 | ret = original_raw_input(prompt) |
| 190 | |
| 191 | if ret.endswith("\r"): |
| 192 | return ret[:-1] |
| 193 | |
| 194 | return ret |
| 195 | |
| 196 | raw_input.__doc__ = original_raw_input.__doc__ |
| 197 |