summaryrefslogtreecommitdiffstats
path: root/Lib/_pyio.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-03-26 00:14:35 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-03-26 00:14:35 (GMT)
commit678ad51b3860c0d5cbf9188e50e72f0b04d1140e (patch)
tree04bf5bcaeb771b607fc180223a3bbd176a34f8f2 /Lib/_pyio.py
parent3fa1aaebde6408dcfe169932d35bf922a77e64c9 (diff)
downloadcpython-678ad51b3860c0d5cbf9188e50e72f0b04d1140e.zip
cpython-678ad51b3860c0d5cbf9188e50e72f0b04d1140e.tar.gz
cpython-678ad51b3860c0d5cbf9188e50e72f0b04d1140e.tar.bz2
Issue #17516: remove dead code
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r--Lib/_pyio.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py
index c44f47c..137ebcb 100644
--- a/Lib/_pyio.py
+++ b/Lib/_pyio.py
@@ -2054,7 +2054,6 @@ class StringIO(TextIOWrapper):
if not isinstance(initial_value, str):
raise TypeError("initial_value must be str or None, not {0}"
.format(type(initial_value).__name__))
- initial_value = str(initial_value)
self.write(initial_value)
self.seek(0)