#NEWLINE# def __getattr__( self , key ) : #NEWLINE# #INDENT# if ( key in self . __pushed_up ) : #NEWLINE# #INDENT# owner = self . __pushed_up [ key ] #NEWLINE# value = getattr ( getattr ( self , owner ) , key ) #NEWLINE# setattr ( self , key , value ) #NEWLINE# return value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( key in self . __all__ ) : #NEWLINE# #INDENT# module = __import__ ( ( ( self . __name__ + '.' ) + key ) , None , None , [ self . __name__ ] ) #NEWLINE# setattr ( self , key , module ) #NEWLINE# return module #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return ModuleType . __getattribute__ ( self , key ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# raise AttributeError ( ( 'module %r has no attribute %r' % ( self . __name__ , key ) ) )