Skip to content

Commit 5311261

Browse files
committed
Merge pull request #50 from mdickinson/fix-frame-line-number
Use current line number for frame objects instead of first line.
2 parents df91fc7 + eeb1c84 commit 5311261

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

refcycle/annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def object_annotation(obj):
205205
filename = "..." + filename[-(FRAME_FILENAME_LIMIT-3):]
206206
return "frame\\n{}:{}".format(
207207
filename,
208-
obj.f_code.co_firstlineno,
208+
obj.f_lineno,
209209
)
210210
else:
211211
return "object\\n{}.{}".format(

0 commit comments

Comments
 (0)