Author: Amaury Forgeot d'Arc <[email protected]>
Branch: 
Changeset: r78066:1d09fc0a175a
Date: 2015-06-13 00:20 +0200
http://bitbucket.org/pypy/pypy/changeset/1d09fc0a175a/

Log:    Add TextIOBase.newlines=None, requested in test_idle

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
@@ -211,6 +211,8 @@
     def errors_get_w(self, space):
         return space.w_None
 
+    def newlines_get_w(self, space):
+        return space.w_None
 
     def _find_line_ending(self, line, start, end):
         size = end - start
@@ -262,6 +264,7 @@
     readline = interp2app(W_TextIOBase.readline_w),
     detach = interp2app(W_TextIOBase.detach_w),
     encoding = interp_attrproperty_w("w_encoding", W_TextIOBase),
+    newlines = GetSetProperty(W_TextIOBase.newlines_get_w),
     errors = GetSetProperty(W_TextIOBase.errors_get_w),
 )
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to