Message326773
The test code for the third case looks incorrect in two places:
Given: if str.find("\n\r"):
^-- should compare to -1
^^^^----- these are reversed
Corrected: if str.find("\r\n") != -1:
Also note that *str* is a confusing variable name because it shadows the builtin *str*. |
|
Date |
User |
Action |
Args |
2018-10-01 09:21:21 | rhettinger | set | recipients:
+ rhettinger, ronaldoussoren, pashkasan |
2018-10-01 09:21:21 | rhettinger | set | messageid: <1538385681.92.0.545547206417.issue34859@psf.upfronthosting.co.za> |
2018-10-01 09:21:21 | rhettinger | link | issue34859 messages |
2018-10-01 09:21:21 | rhettinger | create | |
|