[docs] [issue10172] code block has no syntax coloring

Winston C. Yang report at bugs.python.org
Fri Oct 22 15:38:06 CEST 2010

New submission from Winston C. Yang <winston at cs.wisc.edu>:

The following code block in http://docs.python.org/tutorial/errors.html has no syntax coloring:

import sys

    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."
    print "Unexpected error:", sys.exc_info()[0]

assignee: docs at python
components: Documentation
messages: 119382
nosy: docs at python, wcyang
priority: normal
severity: normal
status: open
title: code block has no syntax coloring
type: behavior
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the docs mailing list