[Python-checkins] r68025 - sandbox/trunk/io-c/_textio.c

amaury.forgeotdarc python-checkins at python.org
Mon Dec 29 20:29:31 CET 2008


Author: amaury.forgeotdarc
Date: Mon Dec 29 20:29:31 2008
New Revision: 68025

Log:
Correctly set TextIOWrapper.writenl attribute.
Fixes more tests on Windows


Modified:
   sandbox/trunk/io-c/_textio.c

Modified: sandbox/trunk/io-c/_textio.c
==============================================================================
--- sandbox/trunk/io-c/_textio.c	(original)
+++ sandbox/trunk/io-c/_textio.c	Mon Dec 29 20:29:31 2008
@@ -482,7 +482,7 @@
     if (newline)
         self->readnl = PyUnicode_FromString(newline);
     self->writetranslate = (newline == NULL || newline[0] != '\0');
-    if (self->readuniversal) {
+    if (!self->readuniversal) {
         if (self->readnl)
             self->writenl = _PyUnicode_AsString(self->readnl);
     }


More information about the Python-checkins mailing list