Author: guido.van.rossum
Date: Sat Aug 11 18:40:13 2007
New Revision: 56929

Modified:
   python/branches/py3k/Lib/textwrap.py
Log:
Quick fix for a new problem here -- using string.lowercase somehow caused
problems.


Modified: python/branches/py3k/Lib/textwrap.py
==============================================================================
--- python/branches/py3k/Lib/textwrap.py        (original)
+++ python/branches/py3k/Lib/textwrap.py        Sat Aug 11 18:40:13 2007
@@ -77,12 +77,11 @@
         r'[^\s\w]*\w+[a-zA-Z]-(?=\w+[a-zA-Z])|'   # hyphenated words
         r'(?<=[\w\!\"\'\&\.\,\?])-{2,}(?=\w))')   # em-dash
 
-    # XXX this is not locale- or charset-aware -- string.lowercase
-    # is US-ASCII only (and therefore English-only)
-    sentence_end_re = re.compile(r'[%s]'              # lowercase letter
+    # XXX this is not locale-aware
+    sentence_end_re = re.compile(r'[a-z]'             # lowercase letter
                                  r'[\.\!\?]'          # sentence-ending punct.
                                  r'[\"\']?'           # optional end-of-quote
-                                 % string.lowercase)
+                                 )
 
 
     def __init__(self,
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to