summaryrefslogtreecommitdiff
path: root/Lib/_pyio.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-06 18:02:12 +0000
committerBenjamin Peterson <benjamin@python.org>2009-06-06 18:02:12 +0000
commit950875021b52e0624986de5cb042a750eb3b1bd8 (patch)
tree1c60387ba28664d3e3cc3877912f89128172935f /Lib/_pyio.py
parent6a9c3ea4ff882660002073a7d088d80fe598538e (diff)
downloadcpython-950875021b52e0624986de5cb042a750eb3b1bd8.tar.gz
give the C implementation of TextIOWrapper the errors property #6217
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r--Lib/_pyio.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py
index c1cdf439e1..bbf65bc0b1 100644
--- a/Lib/_pyio.py
+++ b/Lib/_pyio.py
@@ -1286,6 +1286,13 @@ class TextIOBase(IOBase):
"""
return None
+ @property
+ def errors(self):
+ """Error setting of the decoder or encoder.
+
+ Subclasses should override."""
+ return None
+
io.TextIOBase.register(TextIOBase)
@@ -1933,6 +1940,10 @@ class StringIO(TextIOWrapper):
return object.__repr__(self)
@property
+ def errors(self):
+ return None
+
+ @property
def encoding(self):
return None