[Python-checkins] r65349 - python/trunk/Lib/textwrap.py
brett.cannon
python-checkins at python.org
Fri Aug 1 03:34:05 CEST 2008
Author: brett.cannon
Date: Fri Aug 1 03:34:05 2008
New Revision: 65349
Log:
Remove assignment to True/False to silence the SyntaxWarning that is triggered
by -3.
Modified:
python/trunk/Lib/textwrap.py
Modified: python/trunk/Lib/textwrap.py
==============================================================================
--- python/trunk/Lib/textwrap.py (original)
+++ python/trunk/Lib/textwrap.py Fri Aug 1 03:34:05 2008
@@ -11,11 +11,11 @@
# 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']
More information about the Python-checkins
mailing list