[Python-checkins] r70210 - python/branches/py3k/Modules/_textio.c
antoine.pitrou
python-checkins at python.org
Sat Mar 7 00:57:20 CET 2009
Author: antoine.pitrou
Date: Sat Mar 7 00:57:20 2009
New Revision: 70210
Log:
Remove double negative
Modified:
python/branches/py3k/Modules/_textio.c
Modified: python/branches/py3k/Modules/_textio.c
==============================================================================
--- python/branches/py3k/Modules/_textio.c (original)
+++ python/branches/py3k/Modules/_textio.c Sat Mar 7 00:57:20 2009
@@ -305,7 +305,7 @@
for the \r *byte* with the libc's optimized memchr.
*/
if (seennl == SEEN_LF || seennl == 0) {
- only_lf = !(memchr(in_str, '\r', len * sizeof(Py_UNICODE)) != NULL);
+ only_lf = (memchr(in_str, '\r', len * sizeof(Py_UNICODE)) == NULL);
}
if (only_lf) {
More information about the Python-checkins
mailing list