gh-101517: make bdb avoid looking up in linecache with lineno=None (GH-101787)

(cherry picked from commit 366b94905869d680b3f1d4801fb497e78811e511)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 files changed