Skip to content

Commit d89ca94

Browse files
authored
bpo-33564: Add async to IDLE's code context block openers. (GH-6960)
1 parent fb9dd89 commit d89ca94

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)