[Python-checkins] cpython (3.4): Issue 22823: Use set literal in idlelib.
terry.reedy
python-checkins at python.org
Thu Dec 11 11:34:13 CET 2014
https://hg.python.org/cpython/rev/daec40891d43
changeset: 93831:daec40891d43
branch: 3.4
parent: 93828:86a694781bee
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Thu Dec 11 05:33:36 2014 -0500
summary:
Issue 22823: Use set literal in idlelib.
files:
Lib/idlelib/CodeContext.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/idlelib/CodeContext.py b/Lib/idlelib/CodeContext.py
--- a/Lib/idlelib/CodeContext.py
+++ b/Lib/idlelib/CodeContext.py
@@ -15,8 +15,8 @@
from sys import maxsize as INFINITY
from idlelib.configHandler import idleConf
-BLOCKOPENERS = set(["class", "def", "elif", "else", "except", "finally", "for",
- "if", "try", "while", "with"])
+BLOCKOPENERS = {"class", "def", "elif", "else", "except", "finally", "for",
+ "if", "try", "while", "with"}
UPDATEINTERVAL = 100 # millisec
FONTUPDATEINTERVAL = 1000 # millisec
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list