Return True if the line number is in the frame's code object.
(self, lineno, frame)
| 498 | return False |
| 499 | |
| 500 | def _lineno_in_frame(self, lineno, frame): |
| 501 | """Return True if the line number is in the frame's code object. |
| 502 | """ |
| 503 | code = frame.f_code |
| 504 | if lineno < code.co_firstlineno: |
| 505 | return False |
| 506 | if code not in self.code_linenos: |
| 507 | self.code_linenos[code] = set(lineno for _, _, lineno in code.co_lines()) |
| 508 | return lineno in self.code_linenos[code] |
| 509 | |
| 510 | # Derived classes should override the user_* methods |
| 511 | # to gain control. |
no test coverage detected