#NEWLINE# def __init__( self , source_address , **kwargs ) : #NEWLINE# #INDENT# if isinstance ( source_address , basestring ) : #NEWLINE# #INDENT# self . source_address = ( source_address , 0 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( source_address , tuple ) : #NEWLINE# #INDENT# self . source_address = self #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise TypeError ( 'source_address must be IP address string or (ip, port) tuple' ) #NEWLINE# #UNINDENT# #UNINDENT# super ( SourceAddressAdapter , self ) . __init__ ( ** kwargs )