diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-06-06 18:02:12 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-06-06 18:02:12 (GMT) |
commit | 0926ad1f05f06233a7595b9f837cc3c5ee5fe46d (patch) | |
tree | 7bc723cd73aaaa3557b9da6d4e6ecc979aaa57ec /Lib/_pyio.py | |
parent | 3bbbf18a38ad2af62a090692acb6f1299baf9aba (diff) | |
download | cpython-0926ad1f05f06233a7595b9f837cc3c5ee5fe46d.zip cpython-0926ad1f05f06233a7595b9f837cc3c5ee5fe46d.tar.gz cpython-0926ad1f05f06233a7595b9f837cc3c5ee5fe46d.tar.bz2 |
give the C implementation of TextIOWrapper the errors property #6217
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r-- | Lib/_pyio.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py index c1cdf43..bbf65bc 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 |