#NEWLINE# def __connect( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . starttime = time . time ( ) #NEWLINE# connection = self . __pool . _creator ( ) #NEWLINE# self . __pool . logger . debug ( 'Created new connection %r' , connection ) #NEWLINE# return connection #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# self . __pool . logger . debug ( 'Error on connect(): %s' , e ) #NEWLINE# raise