#NEWLINE# def disambiguate_url( url , location = None ) : #NEWLINE# #INDENT# "turn multi-ip interfaces '0.0.0.0' and '*' into connectable\n    ones, based on the location (default interpretation is localhost).\n    \n    This is for zeromq urls, such as tcp://*:10101." #NEWLINE# try : #NEWLINE# #INDENT# ( proto , ip , port ) = split_url ( url ) #NEWLINE# #UNINDENT# except AssertionError : #NEWLINE# #INDENT# return url #NEWLINE# #UNINDENT# ip = disambiguate_ip_address ( ip , location ) #NEWLINE# return ( '%s://%s:%s' % ( ip , ip , port ) )