#NEWLINE# def p_classdef1( p ) : #NEWLINE# #INDENT# ' classdef : CLASS NAME COLON suite ' #NEWLINE# classdef = ast . ClassDef ( ) #NEWLINE# classdef . name = p [ 2 ] #NEWLINE# classdef . bases = [ ] #NEWLINE# classdef . body = p [ 4 ] #NEWLINE# classdef . decorator_list = [ ] #NEWLINE# classdef . lineno = p . lineno ( 1 ) #NEWLINE# ast . fix_missing_locations ( p ) #NEWLINE# p [ 0 ] = classdef