From 78cf9a56a3fc39df44ce7cef6fe0483ccc23062d Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Thu, 11 Dec 2014 05:33:25 -0500 Subject: [PATCH] Issue 22823: Use set literal in idlelib. --- Lib/idlelib/CodeContext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/idlelib/CodeContext.py b/Lib/idlelib/CodeContext.py index 2f6f737b670..bb0cc9c8920 100644 --- a/Lib/idlelib/CodeContext.py +++ b/Lib/idlelib/CodeContext.py @@ -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