From 791ec1fc13e3d4fcb67b8bcb0c5351d3f117d762 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 1 Aug 2008 01:34:05 +0000 Subject: Remove assignment to True/False to silence the SyntaxWarning that is triggered by -3. --- Lib/textwrap.py | 10 +++++----- 1 file 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'] -- cgit v0.12