summaryrefslogtreecommitdiffstats
path: root/Lib/textwrap.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-12 13:13:55 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-12 13:13:55 (GMT)
commitaef90f4dd47924408ebb5d38e922186b0bd57f8b (patch)
tree94563ba6e6832319ccd9c954a0309980f200b8f2 /Lib/textwrap.py
parent711005d3396ece8c93a406274d10945c3edbe27a (diff)
downloadcpython-aef90f4dd47924408ebb5d38e922186b0bd57f8b.zip
cpython-aef90f4dd47924408ebb5d38e922186b0bd57f8b.tar.gz
cpython-aef90f4dd47924408ebb5d38e922186b0bd57f8b.tar.bz2
Fix string test (was testing str twice).
Diffstat (limited to 'Lib/textwrap.py')
-rw-r--r--Lib/textwrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py
index 03b4ea8..e65cdc3 100644
--- a/Lib/textwrap.py
+++ b/Lib/textwrap.py
@@ -125,7 +125,7 @@ class TextWrapper:
if self.expand_tabs:
text = text.expandtabs()
if self.replace_whitespace:
- if isinstance(text, str):
+ if isinstance(text, str8):
text = text.translate(self.whitespace_trans)
elif isinstance(text, str):
text = text.translate(self.unicode_whitespace_trans)