diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-01 01:34:05 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-01 01:34:05 (GMT) |
commit | 791ec1fc13e3d4fcb67b8bcb0c5351d3f117d762 (patch) | |
tree | 261a226dc2b6e86b8b129fae9d5a5a4bca595689 /Lib | |
parent | 5400b6b2e295ea96ac96169692c3c50b91b17ed6 (diff) | |
download | cpython-791ec1fc13e3d4fcb67b8bcb0c5351d3f117d762.zip cpython-791ec1fc13e3d4fcb67b8bcb0c5351d3f117d762.tar.gz cpython-791ec1fc13e3d4fcb67b8bcb0c5351d3f117d762.tar.bz2 |
Remove assignment to True/False to silence the SyntaxWarning that is triggered
by -3.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/textwrap.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/textwrap.py b/Lib/textwrap.py index 7cd0597..2286c7a 100644 --- a/Lib/textwrap.py +++ b/Lib/textwrap.py @@ -11,11 +11,11 @@ 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) +# 2.3, e.g. Optik and Docutils) by uncommenting the block of code below. +#try: +# True, False +#except NameError: +# (True, False) = (1, 0) __all__ = ['TextWrapper', 'wrap', 'fill'] |