MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / update_try_except_infos

Function update_try_except_infos

tests_python/test_collect_bytecode_info.py:320–324  ·  view source on GitHub ↗
(try_except_infos)

Source from the content-addressed store, hash-verified

318 )
319
320 def update_try_except_infos(try_except_infos):
321 for try_except_info in try_except_infos:
322 # On 3.7/3.8 the last bytecode actually has a different start line.
323 if try_except_info.except_end_line in (7, 8):
324 try_except_info.except_end_line = 9
325
326 try_except_info_for_source = '[{try:1 except 6 end block 10}, {try:2 except 4 end block 5 raises: 5}]'
327 if sys.version_info[:2] <= (3, 7):

Callers 1

checkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected