Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

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*.

----------
nosy: +rhettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34859>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to