mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Review feedback
This commit is contained in:
parent
43b7876ab3
commit
a7d9ad0345
1 changed files with 5 additions and 5 deletions
|
|
@ -167,6 +167,7 @@ def hide_thread_from_debugger(thread):
|
|||
thread.pydev_do_not_trace = True
|
||||
thread.is_pydev_daemon_thread = True
|
||||
|
||||
|
||||
class IDMap(object):
|
||||
|
||||
def __init__(self):
|
||||
|
|
@ -186,9 +187,8 @@ class IDMap(object):
|
|||
self._value_to_key[value] = key
|
||||
return key
|
||||
|
||||
|
||||
def contains_line(code: CodeType, line: int) -> bool:
|
||||
for co_line in code.co_lines():
|
||||
if len(co_line) == 3:
|
||||
if co_line[2] == line:
|
||||
return True
|
||||
return False
|
||||
return any(
|
||||
(len(co_line) == 3 and co_line[2] == line for co_line in code.co_lines())
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue