Format: application/octet-stream
⬇ Download File (902 B)
   1  def add_charset(charset, header_enc=..., body_enc=..., output_charset=...) -> None: ...
   2  def add_alias(alias, canonical) -> None: ...
   3  def add_codec(charset, codecname) -> None: ...
   4  
   5  QP: int  # undocumented
   6  BASE64: int  # undocumented
   7  SHORTEST: int  # undocumented
   8  
   9  class Charset:
  10      input_charset = ...
  11      header_encoding = ...
  12      body_encoding = ...
  13      output_charset = ...
  14      input_codec = ...
  15      output_codec = ...
  16      def __init__(self, input_charset=...) -> None: ...
  17      def __eq__(self, other): ...
  18      def __ne__(self, other): ...
  19      def get_body_encoding(self): ...
  20      def convert(self, s): ...
  21      def to_splittable(self, s): ...
  22      def from_splittable(self, ustr, to_output: bool = ...): ...
  23      def get_output_charset(self): ...
  24      def encoded_header_len(self, s): ...
  25      def header_encode(self, s, convert: bool = ...): ...
  26      def body_encode(self, s, convert: bool = ...): ...
  27