[Python-checkins] bpo-33564: Add async to IDLE's code context block openers. (GH-6960)
Miss Islington (bot)
webhook-mailer at python.org
Thu May 17 21:25:35 EDT 2018
https://github.com/python/cpython/commit/eb4590e4d9abecdbbc91c3531df83e1f9bed50f1
commit: eb4590e4d9abecdbbc91c3531df83e1f9bed50f1
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-05-17T18:25:25-07:00
summary:
bpo-33564: Add async to IDLE's code context block openers. (GH-6960)
(cherry picked from commit d89ca94847d943b883ebcc68e4f0a18cb042ed0d)
Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>
files:
A Misc/NEWS.d/next/IDLE/2018-05-17-19-41-12.bpo-33564.XzHZJe.rst
M Lib/idlelib/codecontext.py
diff --git a/Lib/idlelib/codecontext.py b/Lib/idlelib/codecontext.py
index 316e5109e6cd..2bfb2e988ff4 100644
--- a/Lib/idlelib/codecontext.py
+++ b/Lib/idlelib/codecontext.py
@@ -18,7 +18,7 @@
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 000000000000..df828485f69e
--- /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.
More information about the Python-checkins
mailing list