bpo-33564: Add async to IDLE's code context block openers. (GH-6960) … · python/cpython@b2a02b9 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit b2a02b9
and
committed
(cherry picked from commit d89ca94) Co-authored-by: Terry Jan Reedy tjreedy@udel.edu
File tree
2 files changed
lines changed
2 files changed
lines changed
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -18,7 +18,7 @@ | ||
18 | 18 | from idlelib.config import idleConf |
19 | 19 | |
20 | 20 | BLOCKOPENERS = {"class", "def", "elif", "else", "except", "finally", "for", |
21 | - "if", "try", "while", "with"} | |
21 | +"if", "try", "while", "with", "async"} | |
22 | 22 | UPDATEINTERVAL = 100 # millisec |
23 | 23 | FONTUPDATEINTERVAL = 1000 # millisec |
24 | 24 |
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 | +IDLE's code context now recognizes async as a block opener. |