We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6edcc74 commit e3a8391Copy full SHA for e3a8391
Lib/pdb.py
@@ -142,8 +142,8 @@ def find_function(funcname, filename):
142
except SyntaxError:
143
continue
144
# We should always be able to find the code object here
145
- funccode = next(const for const in code.co_consts if
146
- isinstance(const, CodeType) and const.co_name == funcname)
+ funccode = next(c for c in code.co_consts if
+ isinstance(c, CodeType) and c.co_name == funcname)
147
lineno_offset = find_first_executable_line(funccode)
148
return funcname, filename, funcstart + lineno_offset - 1
149
return None
0 commit comments