Rip out all the u"..." literals and calls to unicode().
diff --git a/Lib/textwrap.py b/Lib/textwrap.py
index e6e089f..03b4ea8 100644
--- a/Lib/textwrap.py
+++ b/Lib/textwrap.py
@@ -70,7 +70,7 @@
whitespace_trans = string.maketrans(_whitespace, ' ' * len(_whitespace))
unicode_whitespace_trans = {}
- uspace = ord(u' ')
+ uspace = ord(' ')
for x in map(ord, _whitespace):
unicode_whitespace_trans[x] = uspace
@@ -127,7 +127,7 @@
if self.replace_whitespace:
if isinstance(text, str):
text = text.translate(self.whitespace_trans)
- elif isinstance(text, unicode):
+ elif isinstance(text, str):
text = text.translate(self.unicode_whitespace_trans)
return text