[pypy-commit] pypy default: Add TextIOBase.newlines=None, requested in test_idle
amauryfa
noreply at buildbot.pypy.org
Sat Jun 13 01:46:56 CEST 2015
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
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),
)
More information about the pypy-commit
mailing list