From: Terry Jan Reedy Date: Fri, 18 May 2018 00:38:41 +0000 (-0400) Subject: bpo-33564: Add async to IDLE's code context block openers. (GH-6960) X-Git-Tag: v3.8.0a1~1812 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d89ca94847d943b883ebcc68e4f0a18cb042ed0d;p=python bpo-33564: Add async to IDLE's code context block openers. (GH-6960) --- diff --git a/Lib/idlelib/codecontext.py b/Lib/idlelib/codecontext.py index 316e5109e6..2bfb2e988f 100644 --- a/Lib/idlelib/codecontext.py +++ b/Lib/idlelib/codecontext.py @@ -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 index 0000000000..df828485f6 --- /dev/null +++ b/Misc/NEWS.d/next/IDLE/2018-05-17-19-41-12.bpo-33564.XzHZJe.rst @@ -0,0 +1 @@ +IDLE's code context now recognizes async as a block opener.