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

Method sync_source_line

Lib/idlelib/debugger.py:302–308  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

300 self.frame = None
301
302 def sync_source_line(self):
303 frame = self.frame
304 if not frame:
305 return
306 filename, lineno = self.__frame2fileline(frame)
307 if filename[:1] + filename[-1:] != "<>" and os.path.exists(filename):
308 self.flist.gotofileline(filename, lineno)
309
310 def __frame2fileline(self, frame):
311 code = frame.f_code

Callers 3

interactionMethod · 0.95
show_sourceMethod · 0.95
test_sync_source_lineMethod · 0.80

Calls 3

__frame2filelineMethod · 0.95
gotofilelineMethod · 0.80
existsMethod · 0.45

Tested by 1

test_sync_source_lineMethod · 0.64