aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-03-21 03:08:31 +0000
committerBenjamin Peterson <benjamin@python.org>2009-03-21 03:08:31 +0000
commitb487e632826a45bb81925d1577856637c3fcafa0 (patch)
treeea4ab6c3c4a4f794ba9421f43ecdd8d05395d61a /Lib/_pyio.py
parentMerged revisions 70489 via svnmerge from (diff)
downloadcpython-b487e632826a45bb81925d1577856637c3fcafa0.tar.gz
cpython-b487e632826a45bb81925d1577856637c3fcafa0.tar.bz2
cpython-b487e632826a45bb81925d1577856637c3fcafa0.zip
stringio doesn't have an encoding
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r--Lib/_pyio.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py
index 771d4ce5818..5a7d2cac127 100644
--- a/Lib/_pyio.py
+++ b/Lib/_pyio.py
@@ -1834,3 +1834,7 @@ class StringIO(TextIOWrapper):
# TextIOWrapper tells the encoding in its repr. In StringIO,
# that's a implementation detail.
return object.__repr__(self)
+
+ @property
+ def encoding(self):
+ return None