Georg Brandl ge...@python.org added the comment:
This is because the Python used to render doesn't recognize the new-style
exception catching; this will be fine once the system is upgraded to 2.6.
--
nosy: +georg.brandl
resolution: - later
status: open - closed
New submission from Winston C. Yang wins...@cs.wisc.edu:
The following code block in http://docs.python.org/tutorial/errors.html has no
syntax coloring:
import sys
try:
f = open('myfile.txt')
s = f.readline()
i = int(s.strip())
except IOError as (errno, strerror):
print I/O
Terry J. Reedy tjre...@udel.edu added the comment:
2.7 only (verified); 3.1 and 3.2 are fine.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10172
___