summaryrefslogtreecommitdiffstats
path: root/Lib/textwrap.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2002-10-13 19:23:18 (GMT)
committerGreg Ward <gward@python.net>2002-10-13 19:23:18 (GMT)
commit78cc051617f741295748e39768fa50c3431c1bd7 (patch)
treea0485ee9cab4b1be3ed94da997c99176867eb876 /Lib/textwrap.py
parent6f6873baa1b0bad2cf91ae58982ca161b3e8a5b0 (diff)
downloadcpython-78cc051617f741295748e39768fa50c3431c1bd7.zip
cpython-78cc051617f741295748e39768fa50c3431c1bd7.tar.gz
cpython-78cc051617f741295748e39768fa50c3431c1bd7.tar.bz2
Fix copyright date: the core of this code actually dates back to 1999
(rev. 1.4 of distutils/fancy_getopt.py).
Diffstat (limited to 'Lib/textwrap.py')
-rw-r--r--Lib/textwrap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py
index ff5f7ef..1ea815a 100644
--- a/Lib/textwrap.py
+++ b/Lib/textwrap.py
@@ -1,7 +1,7 @@
"""Text wrapping and filling.
"""
-# Copyright (C) 2001 Gregory P. Ward.
+# Copyright (C) 1999-2001 Gregory P. Ward.
# Copyright (C) 2002 Python Software Foundation.
# Written by Greg Ward <gward@python.net>
@@ -56,7 +56,7 @@ class TextWrapper:
# (after stripping out empty strings).
wordsep_re = re.compile(r'(\s+|' # any whitespace
r'-*\w{2,}-(?=\w{2,})|' # hyphenated words
- r'(?<=\S)-{2,}(?=\S))') # em-dash
+ r'(?<=\S)-{2,}(?=\w))') # em-dash
# XXX will there be a locale-or-charset-aware version of
# string.lowercase in 2.3?