This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author wcyang
Recipients docs@python, wcyang
Date 2010-10-22.13:37:49
SpamBayes Score 0.0005830997
Marked as misclassified No
Message-id <1287754685.88.0.964365557653.issue10172@psf.upfronthosting.co.za>
In-reply-to
Content
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 error({0}): {1}".format(errno, strerror)
except ValueError:
    print "Could not convert data to an integer."
except:
    print "Unexpected error:", sys.exc_info()[0]
    raise
History
Date User Action Args
2010-10-22 13:38:06wcyangsetrecipients: + wcyang, docs@python
2010-10-22 13:38:05wcyangsetmessageid: <1287754685.88.0.964365557653.issue10172@psf.upfronthosting.co.za>
2010-10-22 13:37:50wcyanglinkissue10172 messages
2010-10-22 13:37:49wcyangcreate