Fix string test (was testing str twice).
This commit is contained in:
parent
711005d339
commit
aef90f4dd4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue