Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#321 crash when colorizing regexp

v3.0
open
Edward Loper
5
2009-09-28
2009-09-28
Sönke Hahn
No

When trying to generate html output, epydoc crashes with:

File "/usr/local/lib/python2.6/dist-packages/epydoc-3.0.1-py2.6.egg/epydoc/markup/pyval_repr.py", line 476, in _colorize_re_tree
log.error("Error colorizing regexp: unknown elt %r" % elt)
NameError: global name 'log' is not defined

If i understand correctly, epydoc fails to generate an error message while colorizing a regexp, due to a missing elif-branch. I wasn't able to create a simple regexp, that would demonstrate the bug (partly due to not having a nice error message). However, the missing elif-branch would be this:

elif op == sre_constants.GROUPREF_EXISTS:
...

Epydoc was called with '--html --docformat plaintext -v --debug'. The crash does not occur with '--parse-only'.

Epydoc was version 3.0.1 installed with easy_install, python 2.6.

A full backtrace is attached.

If i could provide any other helpful information, please let me know.

Discussion

  • Sönke Hahn
    Sönke Hahn
    2009-09-28

    python backtrace

     
    Attachments