parameters: (string)
return_statement: return string
docstring: Cast to unicode DAMMIT!
      Written because Python2 repr always implicitly casts to a string, so we
      have to cast back to a unicode (and we now that we always deal with valid
      unicode, because we check that in the beginning).
docstring_summary: Cast to unicode DAMMIT!
      Written because Python2 repr always implicitly casts to a string, so we
      have to cast back to a unicode (and we now that we always deal with valid
      unicode, because we check that in the beginning).
docstring_tokens: Cast to unicode DAMMIT! Written because Python2 repr always implicitly casts to a string so we have to cast back to a unicode ( and we now that we always deal with valid unicode because we check that in the beginning ) .
function: def u(string):
      """Cast to unicode DAMMIT!
      Written because Python2 repr always implicitly casts to a string, so we
      have to cast back to a unicode (and we now that we always deal with valid
      unicode, because we check that in the beginning).
      """
      if py_version >= 30:
          return str(string)
  
      if not isinstance(string, unicode):
          return unicode(str(string), 'UTF-8')
      return string
function_tokens: def u ( string ) : if py_version >= 30 : return str ( string ) if not isinstance ( string , unicode ) : return unicode ( str ( string ) , 'UTF-8' ) return string