#NEWLINE# def p_classdef3( p ) : #NEWLINE# #INDENT# ' classdef : CLASS NAME LPAR testlist RPAR COLON suite ' #NEWLINE# classdef = ast . ClassDef ( ) #NEWLINE# classdef . name = p [ 2 ] #NEWLINE# bases = p [ 4 ] #NEWLINE# if ( not isinstance ( bases , list ) ) : #NEWLINE# #INDENT# bases = [ bases ] #NEWLINE# #UNINDENT# classdef . bases = bases #NEWLINE# classdef . body = p [ 7 ] #NEWLINE# classdef . decorator_list = [ ] #NEWLINE# classdef . lineno = p . lineno ( 1 ) #NEWLINE# ast . fix_missing_locations ( classdef ) #NEWLINE# p [ 0 ] = classdef