mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fix string test (was testing str twice).
This commit is contained in:
parent
711005d339
commit
aef90f4dd4
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue