This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients pashkasan, rhettinger, ronaldoussoren
Date 2018-10-01.09:21:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1538385681.92.0.545547206417.issue34859@psf.upfronthosting.co.za>
In-reply-to
Content
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*.
History
Date User Action Args
2018-10-01 09:21:21rhettingersetrecipients: + rhettinger, ronaldoussoren, pashkasan
2018-10-01 09:21:21rhettingersetmessageid: <1538385681.92.0.545547206417.issue34859@psf.upfronthosting.co.za>
2018-10-01 09:21:21rhettingerlinkissue34859 messages
2018-10-01 09:21:21rhettingercreate