Skip to content

Commit bac3202

Browse files
authored
Merge branch 'main' into gh-156466-3
2 parents 424f737 + 0e29768 commit bac3202

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/turtledemo/sorting_animate.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ def enable_keys():
178178
onkey(start_ssort, "s")
179179
onkey(start_qsort, "q")
180180
onkey(randomize, "r")
181-
onkey(bye, "space")
182181

183182
def main():
184183
getscreen().clearscreen()
@@ -191,7 +190,7 @@ def main():
191190
return "EVENTLOOP"
192191

193192
instructions1 = "press i for insertion sort, s for selection sort, q for quicksort"
194-
instructions2 = "spacebar to quit, r to randomize"
193+
instructions2 = "r to randomize"
195194

196195
if __name__=="__main__":
197196
msg = main()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove the broken spacebar quit binding from :mod:`turtledemo`\s ``sorting_animate`` example.

Python/codegen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ codegen_function_annotations(compiler *c, location loc,
11961196
RETURN_IF_ERROR_IN_SCOPE(
11971197
c, codegen_annotations_in_scope(c, loc, args, returns, &annotations_len)
11981198
);
1199-
ADDOP_I(c, loc, BUILD_MAP, annotations_len);
1199+
ADDOP_I_IN_SCOPE(c, loc, BUILD_MAP, annotations_len);
12001200
RETURN_IF_ERROR(codegen_finish_annotations_scope(c, loc));
12011201
return MAKE_FUNCTION_ANNOTATE;
12021202
}

0 commit comments

Comments
 (0)