summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-11 16:40:13 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-11 16:40:13 (GMT)
commit9264ecd799eac87c160dcac47d782b092f09d747 (patch)
tree145eb501fb62b161ab35a8f0a58c28925cfd8c13 /Lib
parent0eaa9406380f6a9c528a2bfdb1e2e59847f5b1bf (diff)
downloadcpython-9264ecd799eac87c160dcac47d782b092f09d747.zip
cpython-9264ecd799eac87c160dcac47d782b092f09d747.tar.gz
cpython-9264ecd799eac87c160dcac47d782b092f09d747.tar.bz2
Quick fix for a new problem here -- using string.lowercase somehow caused
problems.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/textwrap.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py
index 3afc269..3fc14f0 100644
--- a/Lib/textwrap.py
+++ b/Lib/textwrap.py
@@ -77,12 +77,11 @@ class TextWrapper:
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,