]> granicus.if.org Git - python/commitdiff
Fix string test (was testing str twice).
authorWalter Dörwald <walter@livinglogic.de>
Sat, 12 May 2007 13:13:55 +0000 (13:13 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Sat, 12 May 2007 13:13:55 +0000 (13:13 +0000)
Lib/textwrap.py

index 03b4ea8273e2104f70b181ce577af87fe36908db..e65cdc31a31cb7e6a85b1ffded16d46de053bda1 100644 (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)