[docs] Link to heapq source from docs.python.org not working

Matthew Woodcraft matthew at woodcraft.me.uk
Tue Aug 9 22:23:52 CEST 2011


http://docs.python.org/library/heapq.html contains a link to the heapq source,
at
http://svn.python.org/view/python/branches/release27-maint/Lib/heapq.py?view=markup

I noticed today that that page isn't working properly.

It's saying

An Exception Has Occurred
Python Traceback

Traceback (most recent call last):
  File "/usr/lib/viewvc/lib/viewvc.py", line 4317, in main
    request.run_viewvc()
  File "/usr/lib/viewvc/lib/viewvc.py", line 397, in run_viewvc
    self.view_func(self)
  File "/usr/lib/viewvc/lib/viewvc.py", line 1763, in view_markup
    markup_or_annotate(request, 0)
  File "/usr/lib/viewvc/lib/viewvc.py", line 1696, in markup_or_annotate
    path[-1], mime_type)
  File "/usr/lib/viewvc/lib/viewvc.py", line 1589, in markup_stream_pygments
    encoding='utf-8'), ps)
  File "/usr/lib/pymodules/python2.6/pygments/__init__.py", line 86, in highlight
    return format(lex(code, lexer), formatter, outfile)
  File "/usr/lib/pymodules/python2.6/pygments/__init__.py", line 45, in lex
    return lexer.get_tokens(code)
  File "/usr/lib/pymodules/python2.6/pygments/lexer.py", line 137, in get_tokens
    text = text.decode('utf-8')
  File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe7 in position 1428: invalid continuation byte


-M-


More information about the docs mailing list