MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / raw_input

Function raw_input

pydev_sitecustomize/sitecustomize.py:185–194  ·  view source on GitHub ↗
(prompt="")

Source from the content-addressed store, hash-verified

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

Callers 2

inputFunction · 0.85
ask_userMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected