Skip to content

Commit 11efd57

Browse files
Remove first executable line changes
1 parent 5ccebc5 commit 11efd57

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Lib/pdb.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -105,24 +105,7 @@ def find_function(funcname, filename):
105105
with fp:
106106
for lineno, line in enumerate(fp, start=1):
107107
if cre.match(line):
108-
<<<<<<< HEAD
109108
return funcname, filename, lineno
110-
=======
111-
funcstart, funcdef = lineno, line
112-
elif funcdef:
113-
funcdef += line
114-
115-
if funcdef:
116-
try:
117-
code = compile(funcdef, filename, 'exec')
118-
except SyntaxError:
119-
continue
120-
# We should always be able to find the code object here
121-
funccode = next(c for c in code.co_consts if
122-
isinstance(c, CodeType) and c.co_name == funcname)
123-
lineno_offset = find_first_executable_line(funccode)
124-
return funcname, filename, funcstart + lineno_offset - 1
125-
>>>>>>> 8f2c0f7a03b... gh-125884: Support breakpoint on functions with annotations (#125892)
126109
return None
127110

128111
def lasti2lineno(code, lasti):

0 commit comments

Comments
 (0)