Skip to content

Commit eb4590e

Browse files
bpo-33564: Add async to IDLE's code context block openers. (GH-6960)
(cherry picked from commit d89ca94) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 950d091 commit eb4590e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/idlelib/codecontext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from idlelib.config import idleConf
1919

2020
BLOCKOPENERS = {"class", "def", "elif", "else", "except", "finally", "for",
21-
"if", "try", "while", "with"}
21+
"if", "try", "while", "with", "async"}
2222
UPDATEINTERVAL = 100 # millisec
2323
FONTUPDATEINTERVAL = 1000 # millisec
2424

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
IDLE's code context now recognizes async as a block opener.

0 commit comments

Comments
 (0)