Skip to content

Commit f67d321

Browse files
cocolatoaisk
andauthored
Update Lib/pdb.py
Co-authored-by: AN Long <aisk@users.noreply.github.com>
1 parent 10fb954 commit f67d321

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lib/pdb.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,11 +1390,10 @@ def do_break(self, arg, temporary=False):
13901390
except ValueError:
13911391
func = arg
13921392
find_res = find_function(func, self.canonic(filename))
1393-
ok, filename, ln = find_res or (None, None, None)
1394-
if not ok:
1393+
if not find_res:
13951394
self.error('Bad lineno or function name: %s' % arg)
13961395
return
1397-
funcname = ok
1396+
funcname, filename, ln = find_res
13981397
lineno = int(ln)
13991398
else:
14001399
# no colon; can be lineno or function

0 commit comments

Comments
 (0)