#NEWLINE# def __call__( self , source ) : #NEWLINE# #INDENT# if isinstance ( source , types . ModuleType ) : #NEWLINE# #INDENT# source = dedent ( inspect . getsource ( source ) ) #NEWLINE# #UNINDENT# if isinstance ( source , types . FunctionType ) : #NEWLINE# #INDENT# source = dedent ( inspect . getsource ( source ) ) #NEWLINE# #UNINDENT# if isinstance ( source , types . LambdaType ) : #NEWLINE# #INDENT# source = dedent ( inspect . getsource ( source ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( source , ( str , unicode ) ) : #NEWLINE# #INDENT# source = dedent ( source ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise NotImplementedError #NEWLINE# #UNINDENT# #UNINDENT# self . _source = source #NEWLINE# self . _ast = ast . parse ( source ) #NEWLINE# return self . visit ( self . _ast )