#NEWLINE# def __init__( self , async_query = True , timeout = 5.0 , **kwargs ) : #NEWLINE# #INDENT# super ( GoogleAPISearch , self ) . __init__ ( ) #NEWLINE# if ( ( not GOOGLE_API_KEY ) or ( not GOOGLE_API_CX ) ) : #NEWLINE# #INDENT# raise NoAPICredentials ( 'API Credentials must be specified in imsearch/engines/api_credentials.py' ) #NEWLINE# #UNINDENT# self . headers . update ( kwargs ) #NEWLINE# self . timeout = timeout #NEWLINE# self . _results_per_req = 10 #NEWLINE# self . _supported_sizes_map = { #NEWLINE# #INDENT# 'small' : 'medium' , #NEWLINE# 'medium' : 'large' , #NEWLINE# 'large' : 'xxlarge' , #NEWLINE# #UNINDENT# } #NEWLINE# self . _supported_styles_map = { #NEWLINE# #INDENT# 'photo' : 'photo' , #NEWLINE# 'graphics' : 'clipart' , #NEWLINE# 'clipart' : 'clipart' , #NEWLINE# 'lineart' : 'lineart' , #NEWLINE# 'face' : 'face' , #NEWLINE# 'news' : 'news' , #NEWLINE# #UNINDENT# } #NEWLINE# self . async_query = timeout