mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
bpo-33564: Add async to IDLE's code context block openers. (GH-6960) (#6961)
(cherry picked from commit d89ca94847
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
efa6427797
commit
b2a02b9d88
2 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,7 @@ from tkinter.constants import TOP, LEFT, X, W, SUNKEN
|
||||||
from idlelib.config import idleConf
|
from idlelib.config import idleConf
|
||||||
|
|
||||||
BLOCKOPENERS = {"class", "def", "elif", "else", "except", "finally", "for",
|
BLOCKOPENERS = {"class", "def", "elif", "else", "except", "finally", "for",
|
||||||
"if", "try", "while", "with"}
|
"if", "try", "while", "with", "async"}
|
||||||
UPDATEINTERVAL = 100 # millisec
|
UPDATEINTERVAL = 100 # millisec
|
||||||
FONTUPDATEINTERVAL = 1000 # millisec
|
FONTUPDATEINTERVAL = 1000 # millisec
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
IDLE's code context now recognizes async as a block opener.
|
Loading…
Add table
Add a link
Reference in a new issue