<s> """<STR_LIT>""" <EOL> import sys <EOL> from imp import find_module as original_find_module <EOL> IS_PYTHON3 = sys . version_info >= ( <NUM_LIT:3> , <NUM_LIT:0> ) <EOL> if IS_PYTHON3 : <EOL> def find_module ( fullname , path ) : <EOL> """<STR_LIT>""" <EOL> if isinstance ( fullname , bytes ) : <EOL> fullname = fullname . decode ( ) <EOL> if isinstance ( path , bytes ) : <EOL> path = path . decode ( ) <EOL> elif isinstance ( path , list ) : <EOL> newpath = [ ] <EOL> for element in path : <EOL> if isinstance ( element , bytes ) : <EOL> newpath . append ( element . decode ( ) ) <EOL> else : <EOL> newpath . append ( element ) <EOL> path = newpath <EOL> return original_find_module ( fullname , path ) <EOL> long = int <EOL> else : <EOL> find_module = original_find_module <EOL> NUM_TYPES = ( int , long , float ) </s>
