commit | 475296619309df6d437b6c6bdd33aea527e664cb | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Sep 26 22:43:02 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Sep 26 22:43:02 1997 +0000 |
tree | 0ca622cc515320887822e1694690d1995ba1c57b | |
parent | 2781fbe46c7f8d8e391c3f3f3e8692b451e6142f [diff] |
Use Marc Lemburg's tb_lineno() to calculate the correct line number. Apparently the traceback object doesn't contains the right linenumber when -O is used. Rather than guessing whether -O is on or off, use tb_lineno() unconditionally.