File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff 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- > >> >> >> 8 f2c0f7a03b ... gh - 125884 : Support breakpoint on functions with annotations (#125892)
126109 return None
127110
128111def lasti2lineno (code , lasti ):
You can’t perform that action at this time.
0 commit comments