[Python-3000-checkins] r55285 - python/branches/py3k-struni/Lib/textwrap.py
walter.doerwald
python-3000-checkins at python.org
Sat May 12 15:14:02 CEST 2007
Author: walter.doerwald
Date: Sat May 12 15:13:55 2007
New Revision: 55285
Modified:
python/branches/py3k-struni/Lib/textwrap.py
Log:
Fix string test (was testing str twice).
Modified: python/branches/py3k-struni/Lib/textwrap.py
==============================================================================
--- python/branches/py3k-struni/Lib/textwrap.py (original)
+++ python/branches/py3k-struni/Lib/textwrap.py Sat May 12 15:13:55 2007
@@ -125,7 +125,7 @@
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)
More information about the Python-3000-checkins
mailing list