def pretty_choice_dict(d):
 return pretty_choice_list([('%s=%s' % (k, d[k])) for k in sorted(d.keys())])

def pretty_choice_dict ( d ) : return pretty_choice_list ( [ ( '%s=%s' % ( k , d [ k ] ) ) for k in sorted ( d . keys ( ) ) ] )
returns a formatted dict as key=value .