From aef90f4dd47924408ebb5d38e922186b0bd57f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Sat, 12 May 2007 13:13:55 +0000 Subject: [PATCH] Fix string test (was testing str twice). --- Lib/textwrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/textwrap.py b/Lib/textwrap.py index 03b4ea8273e..e65cdc31a31 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)