Kaydet (Commit) aef90f4d authored tarafından Walter Dörwald's avatar Walter Dörwald

Fix string test (was testing str twice).

üst 711005d3
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment