diff options
author | Greg Ward <gward@python.net> | 2002-10-13 19:23:18 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2002-10-13 19:23:18 (GMT) |
commit | 78cc051617f741295748e39768fa50c3431c1bd7 (patch) | |
tree | a0485ee9cab4b1be3ed94da997c99176867eb876 /Lib/textwrap.py | |
parent | 6f6873baa1b0bad2cf91ae58982ca161b3e8a5b0 (diff) | |
download | cpython-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.py | 4 |
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? |