AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python33/lib64/python3.3/encodings/__pycache__/ |
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/encodings/__pycache__/utf_16.cpython-33.pyo |
� ��fs c @ s� d Z d d l Z d d l Z e j Z d d d � Z Gd d � d e j � Z Gd d � d e j � Z Gd d � d e j � Z Gd d � d e j � Z d d � Z d S( u� Python 'utf-16' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. i Nu strictc C s t j | | d � S( NT( u codecsu utf_16_decodeu True( u inputu errors( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu decode s u decodec B sV | Ee Z d Z d d d � Z d d d � Z d d � Z d d � Z d d � Z d S( u IncrementalEncoderu strictc C s t j j | | � d | _ d S( N( u codecsu IncrementalEncoderu __init__u Noneu encoder( u selfu errors( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu __init__ s u IncrementalEncoder.__init__c C sm | j d k rV t j | | j � d } t j d k rF t j | _ n t j | _ | S| j | | j � d S( Ni u little( u encoderu Noneu codecsu utf_16_encodeu errorsu sysu byteorderu utf_16_le_encodeu utf_16_be_encode( u selfu inputu finalu result( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu encode s u IncrementalEncoder.encodec C s t j j | � d | _ d S( N( u codecsu IncrementalEncoderu resetu Noneu encoder( u self( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu reset! s u IncrementalEncoder.resetc C s | j d k r d Sd S( Ni i ( u encoderu None( u self( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu getstate% s u IncrementalEncoder.getstatec C s@ | r d | _ n* t j d k r0 t j | _ n t j | _ d S( Nu little( u Noneu encoderu sysu byteorderu codecsu utf_16_le_encodeu utf_16_be_encode( u selfu state( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu setstate, s u IncrementalEncoder.setstateNF( u __name__u __module__u __qualname__u __init__u Falseu encodeu resetu getstateu setstate( u __locals__( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu IncrementalEncoder s u IncrementalEncoderc B sS | Ee Z d Z d d d � Z d d � Z d d � Z d d � Z d d � Z d S( u IncrementalDecoderu strictc C s t j j | | � d | _ d S( N( u codecsu BufferedIncrementalDecoderu __init__u Noneu decoder( u selfu errors( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu __init__6 s u IncrementalDecoder.__init__c C s� | j d k r� t j | | d | � \ } } } | d k rK t j | _ n6 | d k rf t j | _ n | d k r� t d � � n | | f S| j | | j | � S( Ni i i u% UTF-16 stream does not start with BOMi����( u decoderu Noneu codecsu utf_16_ex_decodeu utf_16_le_decodeu utf_16_be_decodeu UnicodeErroru errors( u selfu inputu errorsu finalu outputu consumedu byteorder( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu _buffer_decode: s ! u! IncrementalDecoder._buffer_decodec C s t j j | � d | _ d S( N( u codecsu BufferedIncrementalDecoderu resetu Noneu decoder( u self( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu resetG s u IncrementalDecoder.resetc C s` t j j | � d } | j d k r/ | d f St t j d k | j t j k k � } | | f S( Ni i u big( u codecsu BufferedIncrementalDecoderu getstateu decoderu Noneu intu sysu byteorderu utf_16_be_decode( u selfu stateu addstate( ( u5 /opt/alt/python33/lib64/python3.3/encodings/utf_16.pyu getstateK s u IncrementalDecoder.getstatec C s� t j j | | � | d } | d k rP t j d k rA t j n t j | _ n<