From: Brett Cannon Date: Fri, 1 Aug 2008 01:34:05 +0000 (+0000) Subject: Remove assignment to True/False to silence the SyntaxWarning that is triggered X-Git-Tag: v2.6b3~187 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=791ec1fc13e3d4fcb67b8bcb0c5351d3f117d762;p=thirdparty%2FPython%2Fcpython.git Remove assignment to True/False to silence the SyntaxWarning that is triggered by -3. --- diff --git a/Lib/textwrap.py b/Lib/textwrap.py index 7cd05971c0e7..2286c7a272d4 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']