#NEWLINE# def __init__( self , params ) : #NEWLINE# #INDENT# timeout = params . get ( 'timeout' , 300 ) #NEWLINE# try : #NEWLINE# #INDENT# timeout = int ( timeout ) #NEWLINE# #UNINDENT# except ( ValueError , TypeError ) : #NEWLINE# #INDENT# timeout = 300 #NEWLINE# #UNINDENT# self . default_timeout = timeout