@@ -127,7 +127,7 @@ def find_function(funcname, filename):
127
127
return None
128
128
fp = io .StringIO ('' .join (lines ))
129
129
funcdef = ""
130
- funcstart = None
130
+ funcstart = 0
131
131
# consumer of this info expects the first line to be 1
132
132
with fp :
133
133
for lineno , line in enumerate (fp , start = 1 ):
@@ -783,7 +783,7 @@ def _replace_convenience_variables(self, line):
783
783
if "$" not in line :
784
784
return line
785
785
786
- dollar_start = dollar_end = - 1
786
+ dollar_start = dollar_end = ( - 1 , - 1 )
787
787
replace_variables = []
788
788
try :
789
789
for t in tokenize .generate_tokens (io .StringIO (line ).readline ):
@@ -1088,7 +1088,7 @@ def do_commands(self, arg):
1088
1088
1089
1089
complete_commands = _complete_bpnumber
1090
1090
1091
- def do_break (self , arg , temporary = 0 ):
1091
+ def do_break (self , arg , temporary = False ):
1092
1092
"""b(reak) [ ([filename:]lineno | function) [, condition] ]
1093
1093
1094
1094
Without argument, list all breaks.
@@ -1203,7 +1203,7 @@ def do_tbreak(self, arg):
1203
1203
Same arguments as break, but sets a temporary breakpoint: it
1204
1204
is automatically deleted when first hit.
1205
1205
"""
1206
- self .do_break (arg , 1 )
1206
+ self .do_break (arg , True )
1207
1207
1208
1208
complete_tbreak = _complete_location
1209
1209
0 commit comments