see patch #751943:
"""
I am abusing cgitb to show a traceback window for a GUI
application in Qt. In such a case, the source code to
the program is not always available. The stack trace is
anyway useful to be submitted to the developers of the
code. I attach a patch that should add some info to the
HTML traceback made by cgitb in case the source file is
not available.
"""
This new patch, however, does not generate a link to
"file://?" if the filename is not known.
At the same time, it stops shadowing file() by renaming
local vars.
|