def quoteStringArgument(argument):
 (backslash, colon) = '\\:'
 for c in (backslash, colon):
  argument = argument.replace(c, (backslash + c))
 return argument

def quoteStringArgument ( argument ) : ( backslash , colon ) = '\\:' for c in ( backslash , colon ) : argument = argument . replace ( c , ( backslash + c ) ) return argument
quote an argument to l{serverfromstring} and l{clientfromstring} .