Unverified Kaydet (Commit) eb4590e4 authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) GitHub

bpo-33564: Add async to IDLE's code context block openers. (GH-6960)

(cherry picked from commit d89ca948)
Co-authored-by: 's avatarTerry Jan Reedy <tjreedy@udel.edu>
üst 950d0911
...@@ -18,7 +18,7 @@ from tkinter.constants import TOP, LEFT, X, W, SUNKEN ...@@ -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
......
IDLE's code context now recognizes async as a block opener.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment