]> granicus.if.org Git - python/commitdiff
Remove assignment to True/False to silence the SyntaxWarning that is triggered
authorBrett Cannon <bcannon@gmail.com>
Fri, 1 Aug 2008 01:34:05 +0000 (01:34 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 1 Aug 2008 01:34:05 +0000 (01:34 +0000)
by -3.

Lib/textwrap.py

index 7cd05971c0e7775e11ffae4b185bb3b36c0704d9..2286c7a272d4939f1eb042e1d1e7f05e1cec3806 100644 (file)
@@ -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']