MCPcopy Index your code
hub / github.com/python/cpython / lno_rel2abs

Method lno_rel2abs

Lib/test/test_bdb.py:332–335  ·  view source on GitHub ↗
(self, fname, lineno)

Source from the content-addressed store, hash-verified

330 if fname == self.canonic(__file__) else lineno)
331
332 def lno_rel2abs(self, fname, lineno):
333 return (self.frame.f_code.co_firstlineno + lineno - 1
334 if (lineno and self.canonic(fname) == self.canonic(__file__))
335 else lineno)
336
337 def get_state(self):
338 lineno = self.lno_abs2rel()

Callers 1

next_set_methodMethod · 0.95

Calls 1

canonicMethod · 0.80

Tested by

no test coverage detected