home / django_tickets / tickets

tickets: 8284

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
8284 2008-08-13 13:59:45 2008-08-13 14:39:19 2022-03-06 03:41:50.816428 Unreviewed closed Uncategorized     dev wontfix raw_input broken in eclipse There are a few constructs in django like {{{ response = raw_input() if response == 'yes': do_stuff() }}} In eclipse on windows the '\r' is not stripped out of the string so the equality fails ('yes' != 'yes\r'). This means django refuses to delete my test database if i abort the tests in the middle. See: http://mail.python.org/pipermail/python-list/2008-March/482847.html I suggest something like: {{{ def _django_raw_input(): return raw_input.replace('\r', '') raw_input = _django_raw_input }}} I will write a patch if someone recommends the correct solution. nobody adamlofts   0 0 0 0 0 0
Powered by Datasette · Queries took 1.7ms