#NEWLINE# def find_module( self , name , path = None ) : #NEWLINE# #INDENT# "\n        This method is called by Python if this class is on sys.path. This\n        method will be called every time an import\n        statement is detected (or __import__ is called), before\n        Python's built-in package/module-finding code kicks in.\n        " #NEWLINE# if ( name . find ( name . virtual_name ) == 0 ) : #NEWLINE# #INDENT# name = name . split ( '.' ) #NEWLINE# if ( name [ ( - 1 ) ] == 'lxml_tools' ) : #NEWLINE# #INDENT# name [ ( - 1 ) ] = 'etree' #NEWLINE# #UNINDENT# if ( len ( name ) == 3 ) : #NEWLINE# #INDENT# self . name = ( '.' + '.' . join ( name [ 2 : ] ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . name = '' #NEWLINE# #UNINDENT# return self #NEWLINE# #UNINDENT# return None