From: Terry Jan Reedy Date: Thu, 11 Dec 2014 10:33:36 +0000 (-0500) Subject: Issue 22823: Use set literal in idlelib. X-Git-Tag: v3.4.3rc1~236 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=049882e561aeae334e71063792ddd7883fc52764;p=thirdparty%2FPython%2Fcpython.git Issue 22823: Use set literal in idlelib. --- diff --git a/Lib/idlelib/CodeContext.py b/Lib/idlelib/CodeContext.py index 84491d5a9d1e..44783b69d0b6 100644 --- a/Lib/idlelib/CodeContext.py +++ b/Lib/idlelib/CodeContext.py @@ -15,8 +15,8 @@ import re 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