File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -656,21 +656,21 @@ def atom(self, nodelist):
656656 t = nodelist [0 ][0 ]
657657 if t == token .LPAR :
658658 if nodelist [1 ][0 ] == token .RPAR :
659- n = Node ('const ' , ())
659+ n = Node ('tuple ' , ())
660660 n .lineno = nodelist [0 ][2 ]
661661 return n
662662 return self .com_node (nodelist [1 ])
663663
664664 if t == token .LSQB :
665665 if nodelist [1 ][0 ] == token .RSQB :
666- n = Node ('const ' , [ ] )
666+ n = Node ('list ' , () )
667667 n .lineno = nodelist [0 ][2 ]
668668 return n
669669 return self .com_list_constructor (nodelist [1 ])
670670
671671 if t == token .LBRACE :
672672 if nodelist [1 ][0 ] == token .RBRACE :
673- return Node ('const ' , { } )
673+ return Node ('dict ' , () )
674674 return self .com_dictmaker (nodelist [1 ])
675675
676676 if t == token .BACKQUOTE :
Original file line number Diff line number Diff line change @@ -656,21 +656,21 @@ def atom(self, nodelist):
656656 t = nodelist [0 ][0 ]
657657 if t == token .LPAR :
658658 if nodelist [1 ][0 ] == token .RPAR :
659- n = Node ('const ' , ())
659+ n = Node ('tuple ' , ())
660660 n .lineno = nodelist [0 ][2 ]
661661 return n
662662 return self .com_node (nodelist [1 ])
663663
664664 if t == token .LSQB :
665665 if nodelist [1 ][0 ] == token .RSQB :
666- n = Node ('const ' , [ ] )
666+ n = Node ('list ' , () )
667667 n .lineno = nodelist [0 ][2 ]
668668 return n
669669 return self .com_list_constructor (nodelist [1 ])
670670
671671 if t == token .LBRACE :
672672 if nodelist [1 ][0 ] == token .RBRACE :
673- return Node ('const ' , { } )
673+ return Node ('dict ' , () )
674674 return self .com_dictmaker (nodelist [1 ])
675675
676676 if t == token .BACKQUOTE :
You can’t perform that action at this time.
0 commit comments