def translate_longopt(opt):
 return string.translate(opt, longopt_xlate)

def translate_longopt ( opt ) : return string . translate ( opt , longopt_xlate )
convert a long option name to a valid python identifier by changing "-" to "_" .