]> granicus.if.org Git - python/commitdiff
bpo-33564: Add async to IDLE's code context block openers. (GH-6960)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 18 May 2018 01:25:25 +0000 (18:25 -0700)
committerGitHub <noreply@github.com>
Fri, 18 May 2018 01:25:25 +0000 (18:25 -0700)
(cherry picked from commit d89ca94847d943b883ebcc68e4f0a18cb042ed0d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/codecontext.py
Misc/NEWS.d/next/IDLE/2018-05-17-19-41-12.bpo-33564.XzHZJe.rst [new file with mode: 0644]

index 316e5109e6cd4f775226580899651e9477a3c21d..2bfb2e988ff41a292115e1a0192fe6b29c37911d 100644 (file)
@@ -18,7 +18,7 @@ from tkinter.constants import TOP, LEFT, X, W, SUNKEN
 from idlelib.config import idleConf
 
 BLOCKOPENERS = {"class", "def", "elif", "else", "except", "finally", "for",
-                    "if", "try", "while", "with"}
+                "if", "try", "while", "with", "async"}
 UPDATEINTERVAL = 100 # millisec
 FONTUPDATEINTERVAL = 1000 # millisec
 
diff --git a/Misc/NEWS.d/next/IDLE/2018-05-17-19-41-12.bpo-33564.XzHZJe.rst b/Misc/NEWS.d/next/IDLE/2018-05-17-19-41-12.bpo-33564.XzHZJe.rst
new file mode 100644 (file)
index 0000000..df82848
--- /dev/null
@@ -0,0 +1 @@
+IDLE's code context now recognizes async as a block opener.