[pypy-svn] pypy fast-forward: Make sure to set TextIOWrapper even if we aren't in read universal mode.

alex_gaynor commits-noreply at bitbucket.org
Wed Jan 12 05:29:07 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: fast-forward
Changeset: r40616:d76870e43c6a
Date: 2011-01-11 22:28 -0600
http://bitbucket.org/pypy/pypy/changeset/d76870e43c6a/

Log:	Make sure to set TextIOWrapper even if we aren't in read universal
	mode.

diff --git a/pypy/module/_io/interp_textio.py b/pypy/module/_io/interp_textio.py
--- a/pypy/module/_io/interp_textio.py
+++ b/pypy/module/_io/interp_textio.py
@@ -329,6 +329,8 @@
                 self.writenl = None
         elif _WINDOWS:
             self.writenl = u"\r\n"
+        else:
+            self.writenl = None
 
         # build the decoder object
         if space.is_true(space.call_method(w_buffer, "readable")):


More information about the Pypy-commit mailing list