[svn r45484] A comment why this will not work on different python version

--HG--
branch : trunk
This commit is contained in:
fijal 2007-08-04 16:24:56 +02:00
parent a916b74c71
commit 5f62c21272
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
from __future__ import generators
import py
import py
import sys
class TracebackEntry(object):
""" a single entry in a traceback """
@ -9,6 +10,9 @@ class TracebackEntry(object):
def __init__(self, rawentry):
self._rawentry = rawentry
self.frame = py.code.Frame(rawentry.tb_frame)
# Ugh. 2.4 and 2.5 differs here when encountering
# multi-line statements. Not sure about the solution, but
# should be portable
self.lineno = rawentry.tb_lineno - 1
self.relline = self.lineno - self.frame.code.firstlineno