(value)
Converts value to a python string or, if necessary, unicode-string.
Converts value to a python string or, if necessary, unicode-string.
Converts value to a python string or if necessary unicode - string .
def _StrOrUnicode(value):
  """Converts value to a python string or, if necessary, unicode-string."""
  try:
    return str(value)
  except UnicodeEncodeError:
    return unicode(value)
def _StrOrUnicode ( value ) : try : return str ( value ) except UnicodeEncodeError : return unicode ( value )