#NEWLINE# def onSocketConnect( self , sock , address ) : #NEWLINE# #INDENT# if ( address . socketConnectCallback is not None ) : #NEWLINE# #INDENT# self . socketConnectCallback ( sock , address ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert False , 'onSocketConnect must be overridden or rebound to another function'