ACC SHELL
Ñò
rÄMc @ s› d Z d d k Z d d „ Z d d „ Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d
e i f d „ ƒ YZ d e i f d
„ ƒ YZ d „ Z d S( s Python 'utf-8-sig' Codec
This work similar to UTF-8 with the following changes:
* On encoding/writing a UTF-8 encoded BOM will be prepended/written as the
first three bytes.
* On decoding/reading if the first three bytes are a UTF-8 encoded BOM, these
bytes will be skipped.
iÿÿÿÿNt strictc C s' t i t i | | ƒ d t | ƒ f S( Ni ( t codecst BOM_UTF8t utf_8_encodet len( t inputt errors( ( s) /usr/lib/python2.6/encodings/utf_8_sig.pyt encode s c C sW d } | d t i j o | d } d } n t i | | t ƒ \ } } | | | f S( Ni i ( R R t utf_8_decodet True( R R t prefixt outputt consumed( ( s) /usr/lib/python2.6/encodings/utf_8_sig.pyt decode s
t IncrementalEncoderc B s) e Z d d „ Z e d „ Z d „ Z RS( R c C s t i i | | ƒ t | _ d S( N( R R t __init__R t first( t selfR ( ( s) /usr/lib/python2.6/encodings/utf_8_sig.pyR s c C sM | i o( t | _ t i t i | | i ƒ d St i | | i ƒ d Sd S( Ni ( R t FalseR R R R ( R R t final( ( s) /usr/lib/python2.6/encodings/utf_8_sig.pyR s
c C s t i i | ƒ t | _ d S( N( R R t resetR R ( R ( ( s) /usr/lib/python2.6/encodings/utf_8_sig.pyR % s ( t __name__t
__module__R R R R ( ( ( s) /usr/lib/python2.6/encodings/utf_8_sig.pyR s t IncrementalDecoderc B s&