#NEWLINE# def __init__( self , host , port = None ) : #NEWLINE# #INDENT# if ( not host ) : #NEWLINE# #INDENT# raise LocationValueError ( 'No host specified.' ) #NEWLINE# #UNINDENT# self . host = host . strip ( '[]' ) #NEWLINE# self . port = host