#NEWLINE# def _parseRemoteSpec( remote_spec ) : #NEWLINE# #INDENT# if ( remote_spec == '-' ) : #NEWLINE# #INDENT# return ( None , None , None , None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# match = PORT_RX . match ( remote_spec ) #NEWLINE# if ( not match ) : #NEWLINE# #INDENT# raise error . TopologyError ( ( 'Remote %s is not valid: either "-" or "domain#base(-insuffix|-outsuffix)?"' % remote_spec ) ) #NEWLINE# #UNINDENT# return match . groups ( )