#NEWLINE# def find_module( self , name = None , path = None ) : #NEWLINE# #INDENT# if ( name is None ) : #NEWLINE# #INDENT# name = self . _fullname #NEWLINE# #UNINDENT# for _i in ( ( 'libs/%s.js' % name ) , ( 'Lib/%s.py' % name ) , ( 'Lib/%s/__init__.py' % name ) ) : #NEWLINE# #INDENT# _path = ( '%s%s' % ( __BRYTHON__ . brython_path , _i ) ) #NEWLINE# try : #NEWLINE# #INDENT# ( _fp , _ , _headers ) = urllib . request . urlopen ( _path ) #NEWLINE# if ( _headers [ 'status' ] != 200 ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# self . _module = _fp . read ( ) #NEWLINE# self . _modpath = _path #NEWLINE# return self #NEWLINE# #UNINDENT# except urllib . error . HTTPError as e : #NEWLINE# #INDENT# print ( str ( e ) ) #NEWLINE# self . _modpath = '' #NEWLINE# self . _module = '' #NEWLINE# #UNINDENT# #UNINDENT# raise ImportError