#NEWLINE# def __getattr__( self , attr ) : #NEWLINE# #INDENT# proxy = self . __proxy #NEWLINE# if ( proxy and hasattr ( proxy , attr ) ) : #NEWLINE# #INDENT# return getattr ( proxy , attr ) #NEWLINE# #UNINDENT# attrmap = self . __attrmap #NEWLINE# if ( attr in attrmap ) : #NEWLINE# #INDENT# source = attrmap [ attr ] #NEWLINE# if callable ( source ) : #NEWLINE# #INDENT# value = source ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = _import_object ( source ) #NEWLINE# #UNINDENT# setattr ( self , attr , value ) #NEWLINE# self . __log . debug ( 'loaded lazy attr %r: %r' , attr , value ) #NEWLINE# return value #NEWLINE# #UNINDENT# raise AttributeError ( ( "'module' object has no attribute '%s'" % ( attr , ) ) )