Fix string test (was testing str twice).

This commit is contained in:
Walter Dörwald 2007-05-12 13:13:55 +00:00
parent 711005d339
commit aef90f4dd4
1 changed files with 1 additions and 1 deletions

View File

@ -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)