summaryrefslogtreecommitdiffstats
path: root/Lib/textwrap.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2003-06-15 15:37:18 (GMT)
committerGreg Ward <gward@python.net>2003-06-15 15:37:18 (GMT)
commit523008c6cf569983f3f0fb3cbf7456ab6b8e209d (patch)
treeed3fd18708b856ec1755af40702b74dbe253d71e /Lib/textwrap.py
parent1ef23657c4afe8f9e6036a74dcc5fb5dbe33aa27 (diff)
downloadcpython-523008c6cf569983f3f0fb3cbf7456ab6b8e209d.zip
cpython-523008c6cf569983f3f0fb3cbf7456ab6b8e209d.tar.gz
cpython-523008c6cf569983f3f0fb3cbf7456ab6b8e209d.tar.bz2
Update copyright dates.
Define True and False (if necessary) so this module can be copied as-is to other projects (eg. Optik, Docutils) that don't depend on Python 2.3.
Diffstat (limited to 'Lib/textwrap.py')
-rw-r--r--Lib/textwrap.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py
index 76ac953..a4a5498 100644
--- a/Lib/textwrap.py
+++ b/Lib/textwrap.py
@@ -2,13 +2,21 @@
"""
# Copyright (C) 1999-2001 Gregory P. Ward.
-# Copyright (C) 2002 Python Software Foundation.
+# Copyright (C) 2002, 2003 Python Software Foundation.
# Written by Greg Ward <gward@python.net>
__revision__ = "$Id$"
import string, re
+# Do the right thing with boolean values for all known Python versions
+# (so this module can be copied to projects that don't depend on Python
+# 2.3, e.g. Optik and Docutils).
+try:
+ True, False
+except NameError:
+ (True, False) = (1, 0)
+
__all__ = ['TextWrapper', 'wrap', 'fill']
# Hardcode the recognized whitespace characters to the US-ASCII