]> granicus.if.org Git - python/commitdiff
Issue 22823: Use set literal in idlelib.
authorTerry Jan Reedy <tjreedy@udel.edu>
Thu, 11 Dec 2014 10:33:25 +0000 (05:33 -0500)
committerTerry Jan Reedy <tjreedy@udel.edu>
Thu, 11 Dec 2014 10:33:25 +0000 (05:33 -0500)
Lib/idlelib/CodeContext.py

index 2f6f737b670353b4efa206eca953bb61e2f6b391..bb0cc9c8920b2a743377c7865bf3baa07ea91331 100644 (file)
@@ -15,8 +15,8 @@ import re
 from sys import maxint 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