summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2018-05-18 00:38:41 (GMT)
committerGitHub <noreply@github.com>2018-05-18 00:38:41 (GMT)
commitd89ca94847d943b883ebcc68e4f0a18cb042ed0d (patch)
treea588cb32e2c3b75a65b7d1089320a6f613fcb0e3
parentfb9dd8915314d857161de89fcbbb041f2b49fc22 (diff)
downloadcpython-d89ca94847d943b883ebcc68e4f0a18cb042ed0d.zip
cpython-d89ca94847d943b883ebcc68e4f0a18cb042ed0d.tar.gz
cpython-d89ca94847d943b883ebcc68e4f0a18cb042ed0d.tar.bz2
bpo-33564: Add async to IDLE's code context block openers. (GH-6960)
-rw-r--r--Lib/idlelib/codecontext.py2
-rw-r--r--Misc/NEWS.d/next/IDLE/2018-05-17-19-41-12.bpo-33564.XzHZJe.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/codecontext.py b/Lib/idlelib/codecontext.py
index 316e510..2bfb2e9 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 0000000..df82848
--- /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.