ok
Direktori : /lib64/python2.7/encodings/ |
Current File : //lib64/python2.7/encodings/quopri_codec.pyo |
� _цdc @ s� d Z d d l Z d d l Z y d d l m Z Wn! e k rU d d l m Z n Xd d � Z d d � Z d e j f d � � YZ d e j f d � � YZ d e j f d � � YZ d e e j f d � � YZ d e e j f d � � YZ d � Z d S( sg Codec for quoted-printable encoding. Like base64 and rot13, this returns Python strings, not Unicode. i����N( t StringIOt strictc C sJ t t | � � } t � } t j | | d � | j � } | t | � f S( s� Encode the input, returning a tuple (output object, length consumed). errors defines the error handling to apply. It defaults to 'strict' handling which is the only currently supported error handling for this codec. i ( R t strt quoprit encodet getvaluet len( t inputt errorst ft gt output( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyt quopri_encode s c C sG t t | � � } t � } t j | | � | j � } | t | � f S( s� Decode the input, returning a tuple (output object, length consumed). errors defines the error handling to apply. It defaults to 'strict' handling which is the only currently supported error handling for this codec. ( R R R t decodeR R ( R R R R R ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyt quopri_decode s t Codecc B s e Z d d � Z d d � Z RS( R c C s t | | � S( N( R ( t selfR R ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyR - s c C s t | | � S( N( R ( R R R ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyR / s ( t __name__t __module__R R ( ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyR + s t IncrementalEncoderc B s e Z e d � Z RS( c C s t | | j � d S( Ni ( R R ( R R t final( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyR 3 s ( R R t FalseR ( ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyR 2 s t IncrementalDecoderc B s e Z e d � Z RS( c C s t | | j � d S( Ni ( R R ( R R R ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyR 7 s ( R R R R ( ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyR 6 s t StreamWriterc B s e Z RS( ( R R ( ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyR : s t StreamReaderc B s e Z RS( ( R R ( ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyR = s c C s4 t j d d d t d t d t d t d t d t � S( Nt nameR R R t incrementalencodert incrementaldecodert streamwritert streamreader( t codecst CodecInfoR R R R R R ( ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyt getregentryB s ( t __doc__R R t cStringIOR t ImportErrorR R R R R R R R ( ( ( s. /usr/lib64/python2.7/encodings/quopri_codec.pyt <module> s