parameters: (orig_enc)
return_statement: return orig_enc
docstring: Imitates get_normal_name in tokenizer.c.
docstring_summary: Imitates get_normal_name in tokenizer.c.
docstring_tokens: Imitates get_normal_name in tokenizer . c .
function: def _get_normal_name(orig_enc):
      """Imitates get_normal_name in tokenizer.c."""
      # Only care about the first 12 characters.
      enc = orig_enc[:12].lower().replace("_", "-")
      if enc == "utf-8" or enc.startswith("utf-8-"):
          return "utf-8"
      if enc in ("latin-1", "iso-8859-1", "iso-latin-1") or \
         enc.startswith(("latin-1-", "iso-8859-1-", "iso-latin-1-")):
          return "iso-8859-1"
      return orig_enc
function_tokens: def _get_normal_name ( orig_enc ) : # Only care about the first 12 characters. enc = orig_enc [ : 12 ] . lower ( ) . replace ( "_" , "-" ) if enc == "utf-8" or enc . startswith ( "utf-8-" ) : return "utf-8" if enc in ( "latin-1" , "iso-8859-1" , "iso-latin-1" ) or enc . startswith ( ( "latin-1-" , "iso-8859-1-" , "iso-latin-1-" ) ) : return "iso-8859-1" return orig_enc