Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def find_function(funcname, filename):
return None
fp = io.StringIO(''.join(lines))
funcdef = ""
funcstart = None
funcstart = 0
# consumer of this info expects the first line to be 1
with fp:
for lineno, line in enumerate(fp, start=1):
Expand Down Expand Up @@ -779,7 +779,7 @@ def _replace_convenience_variables(self, line):
if "$" not in line:
return line

dollar_start = dollar_end = -1
dollar_start = dollar_end = (-1, -1)
replace_variables = []
try:
for t in tokenize.generate_tokens(io.StringIO(line).readline):
Expand Down Expand Up @@ -1084,7 +1084,7 @@ def do_commands(self, arg):

complete_commands = _complete_bpnumber

def do_break(self, arg, temporary = 0):
def do_break(self, arg, temporary=False):
"""b(reak) [ ([filename:]lineno | function) [, condition] ]

Without argument, list all breaks.
Expand Down Expand Up @@ -1199,7 +1199,7 @@ def do_tbreak(self, arg):
Same arguments as break, but sets a temporary breakpoint: it
is automatically deleted when first hit.
"""
self.do_break(arg, 1)
self.do_break(arg, True)

complete_tbreak = _complete_location

Expand Down
Loading