#NEWLINE# def p_atom5( p ) : #NEWLINE# #INDENT# ' atom : LSQB listmaker RSQB ' #NEWLINE# info = p [ 2 ] #NEWLINE# if isinstance ( info , CommaSeparatedList ) : #NEWLINE# #INDENT# node = ast . List ( elts = info . values , ctx = Load ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( info , GeneratorInfo ) : #NEWLINE# #INDENT# node = ast . ListComp ( elt = info . elt , generators = info . generators ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise TypeError ( ( 'Unexpected node for listmaker: %s' % info ) ) #NEWLINE# #UNINDENT# #UNINDENT# p [ 0 ] = node