]> granicus.if.org Git - python/commit
Use Marc Lemburg's tb_lineno() to calculate the correct line number.
authorGuido van Rossum <guido@python.org>
Fri, 26 Sep 1997 22:43:02 +0000 (22:43 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 26 Sep 1997 22:43:02 +0000 (22:43 +0000)
commit475296619309df6d437b6c6bdd33aea527e664cb
tree0ca622cc515320887822e1694690d1995ba1c57b
parent2781fbe46c7f8d8e391c3f3f3e8692b451e6142f
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.
Lib/traceback.py