Skip to content

Commit e3a8391

Browse files
Update Lib/pdb.py
Co-authored-by: Irit Katriel <[email protected]>
1 parent 6edcc74 commit e3a8391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/pdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ def find_function(funcname, filename):
142142
except SyntaxError:
143143
continue
144144
# 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)
145+
funccode = next(c for c in code.co_consts if
146+
isinstance(c, CodeType) and c.co_name == funcname)
147147
lineno_offset = find_first_executable_line(funccode)
148148
return funcname, filename, funcstart + lineno_offset - 1
149149
return None

0 commit comments

Comments
 (0)