@@ -187,8 +187,8 @@ def parenthesize(node):
187187 return Node (syms .atom , [LParen (), node , RParen ()])
188188
189189
190- consuming_calls = set ([ "sorted" , "list" , "set" , "any" , "all" , "tuple" , "sum" ,
191- "min" , "max" , "enumerate" ])
190+ consuming_calls = { "sorted" , "list" , "set" , "any" , "all" , "tuple" , "sum" ,
191+ "min" , "max" , "enumerate" }
192192
193193def attr_chain (obj , attr ):
194194 """Follow an attribute chain.
@@ -359,7 +359,7 @@ def is_import_stmt(node):
359359 root .insert_child (insert_pos , Node (syms .simple_stmt , children ))
360360
361361
362- _def_syms = set ([ syms .classdef , syms .funcdef ])
362+ _def_syms = { syms .classdef , syms .funcdef }
363363def find_binding (name , node , package = None ):
364364 """ Returns the node which binds variable name, otherwise None.
365365 If optional argument package is supplied, only imports will
@@ -402,7 +402,7 @@ def find_binding(name, node, package=None):
402402 return ret
403403 return None
404404
405- _block_syms = set ([ syms .funcdef , syms .classdef , syms .trailer ])
405+ _block_syms = { syms .funcdef , syms .classdef , syms .trailer }
406406def _find (name , node ):
407407 nodes = [node ]
408408 while nodes :
0 commit comments