#NEWLINE# def _valid_name( s , exprs ) : #NEWLINE# #INDENT# 'Replace colons with numbers such that the new name does not exist in any\n    of the given expressions.\n    ' #NEWLINE# i = 0 #NEWLINE# check = ' ' . join ( check ) #NEWLINE# while True : #NEWLINE# #INDENT# n = s . replace ( ':' , ( '%d' % i ) ) #NEWLINE# if ( n not in check ) : #NEWLINE# #INDENT# return n #NEWLINE# #UNINDENT# i += 1