Commit 6cd45b25 authored by Greg Ward's avatar Greg Ward

Fix copyright date: the core of this code actually dates back to 1999

(rev. 1.4 of distutils/fancy_getopt.py).
parent ecdb9393
"""Text wrapping and filling. """Text wrapping and filling.
""" """
# Copyright (C) 2001 Gregory P. Ward. # Copyright (C) 1999-2001 Gregory P. Ward.
# Copyright (C) 2002 Python Software Foundation. # Copyright (C) 2002 Python Software Foundation.
# Written by Greg Ward <gward@python.net> # Written by Greg Ward <gward@python.net>
...@@ -56,7 +56,7 @@ class TextWrapper: ...@@ -56,7 +56,7 @@ class TextWrapper:
# (after stripping out empty strings). # (after stripping out empty strings).
wordsep_re = re.compile(r'(\s+|' # any whitespace wordsep_re = re.compile(r'(\s+|' # any whitespace
r'-*\w{2,}-(?=\w{2,})|' # hyphenated words 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 # XXX will there be a locale-or-charset-aware version of
# string.lowercase in 2.3? # string.lowercase in 2.3?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment