zfc+@spdZddlZddlZyddlTWn#ek rQZedenXddddd d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/g+Zd0Zd1Z Z d2Z Z d3Z d4Zejd5kr!e ZZe Zne ZZeZe Ze Ze ZeZdefd6YZddYd7YZdefd8YZd9efd:YZdefd;YZd<efd=YZdefd>YZdefd?YZ ddZd@YZ!dd[dAYZ"dBddCdDdEZ$ddCdFZ%dGZ&dHZ'dIZ(dJZ)dKZ*dLZ+dCdMZ,dCdNZ-dOZ.dPZ/y@e0dCZ1e0dQZ2e0dRZ3e0dSZ4e0dTZ5Wn/e6k rdZ1dZ2dZ3dZ4dZ5nXdUZ7e7r-ddl8Z8ne9dVkrle%ej:dWdXe_:e%ej;dXdWe_;ndS(\s codecs -- Python Codec Registry, API and helpers. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. iN(t*s%Failed to load the builtin codecs: %stregistertlookuptopent EncodedFiletBOMtBOM_BEtBOM_LEtBOM32_BEtBOM32_LEtBOM64_BEtBOM64_LEtBOM_UTF8t BOM_UTF16t BOM_UTF16_LEt BOM_UTF16_BEt BOM_UTF32t BOM_UTF32_LEt BOM_UTF32_BEt CodecInfotCodectIncrementalEncodertIncrementalDecodert StreamReadert StreamWritertStreamReaderWritert StreamRecodert getencodert getdecodertgetincrementalencodertgetincrementaldecodert getreadert getwritertencodetdecodet iterencodet iterdecodet strict_errorst ignore_errorstreplace_errorstxmlcharrefreplace_errorstbackslashreplace_errorstregister_errort lookup_errorssssstlittlecBs8eZdZeZdddddddZdZRS(s0Codec details when looking up the codec registryc Csytj|||||f} || _|| _|| _|| _|| _|| _|| _|dk ru|| _ n| S(N( ttuplet__new__tnameR!R"tincrementalencodertincrementaldecodert streamwritert streamreadertNonet_is_text_encoding( tclsR!R"R3R2R0R1R/R5tself((s/usr/lib64/python2.7/codecs.pyR.\s         cCs)d|jj|jj|jt|fS(Ns&<%s.%s object for encoding %s at 0x%x>(t __class__t __module__t__name__R/tid(R7((s/usr/lib64/python2.7/codecs.pyt__repr__ksN(R:R9t__doc__tTrueR5R4R.R<(((s/usr/lib64/python2.7/codecs.pyRQs   cBs&eZdZddZddZRS(s Defines the interface for stateless encoders/decoders. The .encode()/.decode() methods may use different error handling schemes by providing the errors argument. These string values are predefined: 'strict' - raise a ValueError error (or a subclass) 'ignore' - ignore the character and continue with the next 'replace' - replace with a suitable replacement character; Python will use the official U+FFFD REPLACEMENT CHARACTER for the builtin Unicode codecs on decoding and '?' on encoding. 'xmlcharrefreplace' - Replace with the appropriate XML character reference (only for encoding). 'backslashreplace' - Replace with backslashed escape sequences (only for encoding). The set of allowed values can be extended via register_error. tstrictcCs tdS(s# Encodes the object input and returns a tuple (output object, length consumed). errors defines the error handling to apply. It defaults to 'strict' handling. The method may not store state in the Codec instance. Use StreamWriter for codecs which have to keep state in order to make encoding efficient. The encoder must be able to handle zero length input and return an empty object of the output object type in this situation. N(tNotImplementedError(R7tinputterrors((s/usr/lib64/python2.7/codecs.pyR!scCs tdS(s Decodes the object input and returns a tuple (output object, length consumed). input must be an object which provides the bf_getreadbuf buffer slot. Python strings, buffer objects and memory mapped files are examples of objects providing this slot. errors defines the error handling to apply. It defaults to 'strict' handling. The method may not store state in the Codec instance. Use StreamReader for codecs which have to keep state in order to make decoding efficient. The decoder must be able to handle zero length input and return an empty object of the output object type in this situation. N(R@(R7RARB((s/usr/lib64/python2.7/codecs.pyR"s(R:R9R=R!R"(((s/usr/lib64/python2.7/codecs.pyRns cBsAeZdZddZedZdZdZdZRS(s An IncrementalEncoder encodes an input in multiple steps. The input can be passed piece by piece to the encode() method. The IncrementalEncoder remembers the state of the Encoding process between calls to encode(). R?cCs||_d|_dS(s Creates an IncrementalEncoder instance. The IncrementalEncoder may use different error handling schemes by providing the errors keyword argument. See the module docstring for a list of possible values. tN(RBtbuffer(R7RB((s/usr/lib64/python2.7/codecs.pyt__init__s cCs tdS(sA Encodes input and returns the resulting object. N(R@(R7RAtfinal((s/usr/lib64/python2.7/codecs.pyR!scCsdS(s: Resets the encoder to the initial state. N((R7((s/usr/lib64/python2.7/codecs.pytresetRCcCsdS(s: Return the current state of the encoder. i((R7((s/usr/lib64/python2.7/codecs.pytgetstatescCsdS(sl Set the current state of the encoder. state must have been returned by getstate(). N((R7tstate((s/usr/lib64/python2.7/codecs.pytsetstateRC( R:R9R=REtFalseR!RGRHRJ(((s/usr/lib64/python2.7/codecs.pyRs    tBufferedIncrementalEncodercBsJeZdZddZdZedZdZdZdZ RS(s This subclass of IncrementalEncoder can be used as the baseclass for an incremental encoder if the encoder must keep some of the output in a buffer between calls to encode(). R?cCstj||d|_dS(NRC(RRERD(R7RB((s/usr/lib64/python2.7/codecs.pyREscCs tdS(N(R@(R7RARBRF((s/usr/lib64/python2.7/codecs.pyt_buffer_encodescCs<|j|}|j||j|\}}|||_|S(N(RDRMRB(R7RARFtdatatresulttconsumed((s/usr/lib64/python2.7/codecs.pyR!s  cCstj|d|_dS(NRC(RRGRD(R7((s/usr/lib64/python2.7/codecs.pyRGs cCs |jp dS(Ni(RD(R7((s/usr/lib64/python2.7/codecs.pyRHscCs|p d|_dS(NRC(RD(R7RI((s/usr/lib64/python2.7/codecs.pyRJs( R:R9R=RERMRKR!RGRHRJ(((s/usr/lib64/python2.7/codecs.pyRLs     cBsAeZdZddZedZdZdZdZRS(s An IncrementalDecoder decodes an input in multiple steps. The input can be passed piece by piece to the decode() method. The IncrementalDecoder remembers the state of the decoding process between calls to decode(). R?cCs ||_dS(s Creates an IncrementalDecoder instance. The IncrementalDecoder may use different error handling schemes by providing the errors keyword argument. See the module docstring for a list of possible values. N(RB(R7RB((s/usr/lib64/python2.7/codecs.pyREscCs tdS(sA Decodes input and returns the resulting object. N(R@(R7RARF((s/usr/lib64/python2.7/codecs.pyR"scCsdS(s: Resets the decoder to the initial state. N((R7((s/usr/lib64/python2.7/codecs.pyRG RCcCsdS(s  Return the current state of the decoder. This must be a (buffered_input, additional_state_info) tuple. buffered_input must be a bytes object containing bytes that were passed to decode() that have not yet been converted. additional_state_info must be a non-negative integer representing the state of the decoder WITHOUT yet having processed the contents of buffered_input. In the initial state and after reset(), getstate() must return (b"", 0). RCi(RCi((R7((s/usr/lib64/python2.7/codecs.pyRHs cCsdS(s Set the current state of the decoder. state must have been returned by getstate(). The effect of setstate((b"", 0)) must be equivalent to reset(). N((R7RI((s/usr/lib64/python2.7/codecs.pyRJ RC( R:R9R=RERKR"RGRHRJ(((s/usr/lib64/python2.7/codecs.pyRs    tBufferedIncrementalDecodercBsJeZdZddZdZedZdZdZdZ RS(s This subclass of IncrementalDecoder can be used as the baseclass for an incremental decoder if the decoder must be able to handle incomplete byte sequences. R?cCstj||d|_dS(NRC(RRERD(R7RB((s/usr/lib64/python2.7/codecs.pyRE.scCs tdS(N(R@(R7RARBRF((s/usr/lib64/python2.7/codecs.pyt_buffer_decode2scCs<|j|}|j||j|\}}|||_|S(N(RDRRRB(R7RARFRNRORP((s/usr/lib64/python2.7/codecs.pyR"7s  cCstj|d|_dS(NRC(RRGRD(R7((s/usr/lib64/python2.7/codecs.pyRG?s cCs |jdfS(Ni(RD(R7((s/usr/lib64/python2.7/codecs.pyRHCscCs|d|_dS(Ni(RD(R7RI((s/usr/lib64/python2.7/codecs.pyRJGs( R:R9R=RERRRKR"RGRHRJ(((s/usr/lib64/python2.7/codecs.pyRQ(s     cBsYeZddZdZdZdZddZedZdZ d Z RS( R?cCs||_||_dS(s[ Creates a StreamWriter instance. stream must be a file-like object open for writing (binary) data. The StreamWriter may use different error handling schemes by providing the errors keyword argument. These parameters are predefined: 'strict' - raise a ValueError (or a subclass) 'ignore' - ignore the character and continue with the next 'replace'- replace with a suitable replacement character 'xmlcharrefreplace' - Replace with the appropriate XML character reference. 'backslashreplace' - Replace with backslashed escape sequences (only for encoding). The set of allowed parameter values can be extended via register_error. N(tstreamRB(R7RSRB((s/usr/lib64/python2.7/codecs.pyRETs cCs/|j||j\}}|jj|dS(s> Writes the object's contents encoded to self.stream. N(R!RBRStwrite(R7tobjectRNRP((s/usr/lib64/python2.7/codecs.pyRTmscCs|jdj|dS(s[ Writes the concatenated list of strings to the stream using .write(). RCN(RTtjoin(R7tlist((s/usr/lib64/python2.7/codecs.pyt writelinestscCsdS(s5 Flushes and resets the codec buffers used for keeping state. Calling this method should ensure that the data on the output is put into a clean state, that allows appending of new fresh data without having to rescan the whole stream to recover state. N((R7((s/usr/lib64/python2.7/codecs.pyRG{s icCs<|jj|||dkr8|dkr8|jndS(Ni(RStseekRG(R7toffsettwhence((s/usr/lib64/python2.7/codecs.pyRYscCs||j|S(s? Inherit all other methods from the underlying stream. (RS(R7R/tgetattr((s/usr/lib64/python2.7/codecs.pyt __getattr__scCs|S(N((R7((s/usr/lib64/python2.7/codecs.pyt __enter__scCs|jjdS(N(RStclose(R7ttypetvaluettb((s/usr/lib64/python2.7/codecs.pyt__exit__s( R:R9RERTRXRGRYR\R]R^Rc(((s/usr/lib64/python2.7/codecs.pyRRs      cBseZddZddZddedZdedZdedZ dZ dd Z d Z d Z ed Zd ZdZRS(R?cCs1||_||_d|_d|_d|_dS(s[ Creates a StreamReader instance. stream must be a file-like object open for reading (binary) data. The StreamReader may use different error handling schemes by providing the errors keyword argument. These parameters are predefined: 'strict' - raise a ValueError (or a subclass) 'ignore' - ignore the character and continue with the next 'replace'- replace with a suitable replacement character; The set of allowed parameter values can be extended via register_error. RCN(RSRBt bytebuffert charbufferR4t linebuffer(R7RSRB((s/usr/lib64/python2.7/codecs.pyREs     cCs tdS(N(R@(R7RARB((s/usr/lib64/python2.7/codecs.pyR"sic Cs|jr*dj|j|_d|_n|dkr?|}nxtr`|dkrpt|j|krpPqpn|dkr|jj}n|jj|}|j|}y|j ||j \}}Wnht k r6}|r0|j ||j |j \}}|j t} t| dkr3q3q7nX|||_|j|7_|sBPqBqBW|dkr|j} d|_n|j| } |j||_| S(s Decodes data from the stream self.stream and returns the resulting object. chars indicates the number of characters to read from the stream. read() will never return more than chars characters, but it might return less, if there are not enough characters available. size indicates the approximate maximum number of bytes to read from the stream for decoding purposes. The decoder can modify this setting as appropriate. The default value -1 indicates to read and decode as much as possible. size is intended to prevent having to decode huge files in one step. If firstline is true, and a UnicodeDecodeError happens after the first line terminator in the input only the first line will be returned, the rest of the input will be kept until the next call to read(). The method should use a greedy read strategy meaning that it should read as much data as is allowed within the definition of the encoding and the given size, e.g. if optional encoding endings or state markers are available on the stream, these should be read too. RCiiN(RfRVReR4R>tlenRStreadRdR"RBtUnicodeDecodeErrortstartt splitlines( R7tsizetcharst firstlinetnewdataRNtnewcharst decodedbytestexctlinesRO((s/usr/lib64/python2.7/codecs.pyRhs@        "      c CsI|jrq|jd}|jd=t|jdkrQ|jd|_d |_n|sm|jtd}n|S|pzd}d}xtrD|j|dt}|r|jdr||jdddd7}qn||7}|jt}|rt|dkr|d}|d=t|dkrT|d c|j7<||_d |_n|d|j|_|s|jtd}nPn|d}|djtd}||krdj |d|j|_|r|}n|}Pqn| s|d k r(|r$| r$|jtd}nPn|d kr|d 9}qqW|S( s Read one line from the input stream and return the decoded data. size, if given, is passed as size argument to the read() method. iiiHRCRns RlRmii@iN( RfRgReR4RkRKR>RhtendswithRV( R7RltkeependstlinetreadsizeRNRst line0withendtline0withoutend((s/usr/lib64/python2.7/codecs.pytreadlinesZ      "         cCs|j}|j|S(sZ Read all lines available on the input stream and return them as list of lines. Line breaks are implemented using the codec's decoder method and are included in the list entries. sizehint, if given, is ignored since there is no efficient way to finding the true end-of-line. (RhRk(R7tsizehintRuRN((s/usr/lib64/python2.7/codecs.pyt readlinesQs cCsd|_d|_d|_dS(s Resets the codec buffers used for keeping state. Note that no stream repositioning should take place. This method is primarily intended to be able to recover from decoding errors. RCuN(RdReR4Rf(R7((s/usr/lib64/python2.7/codecs.pyRG`s  icCs!|jj|||jdS(sp Set the input stream's current position. Resets the codec buffers used for keeping state. N(RSRYRG(R7RZR[((s/usr/lib64/python2.7/codecs.pyRYmscCs |j}|r|StdS(s4 Return the next decoded line from the input stream.N(Rzt StopIteration(R7Rv((s/usr/lib64/python2.7/codecs.pytnextus cCs|S(N((R7((s/usr/lib64/python2.7/codecs.pyt__iter__}scCs||j|S(s? Inherit all other methods from the underlying stream. (RS(R7R/R\((s/usr/lib64/python2.7/codecs.pyR]scCs|S(N((R7((s/usr/lib64/python2.7/codecs.pyR^scCs|jjdS(N(RSR_(R7R`RaRb((s/usr/lib64/python2.7/codecs.pyRcsN(R:R9RER"RKRhR4R>RzR|RGRYR~RR\R]R^Rc(((s/usr/lib64/python2.7/codecs.pyRs  NI     cBseZdZdZddZddZddZddZdZ d Z d Z d Z d Z d dZedZdZdZRS(s StreamReaderWriter instances allow wrapping streams which work in both read and write modes. The design is such that one can use the factory functions returned by the codec.lookup() function to construct the instance. tunknownR?cCs:||_||||_||||_||_dS(sR Creates a StreamReaderWriter instance. stream must be a Stream-like object. Reader, Writer must be factory functions or classes providing the StreamReader, StreamWriter interface resp. Error handling is done in the same way as defined for the StreamWriter/Readers. N(RStreadertwriterRB(R7RStReadertWriterRB((s/usr/lib64/python2.7/codecs.pyREs icCs|jj|S(N(RRh(R7Rl((s/usr/lib64/python2.7/codecs.pyRhscCs|jj|S(N(RRz(R7Rl((s/usr/lib64/python2.7/codecs.pyRzscCs|jj|S(N(RR|(R7R{((s/usr/lib64/python2.7/codecs.pyR|scCs |jjS(s4 Return the next decoded line from the input stream.(RR~(R7((s/usr/lib64/python2.7/codecs.pyR~scCs|S(N((R7((s/usr/lib64/python2.7/codecs.pyRscCs|jj|S(N(RRT(R7RN((s/usr/lib64/python2.7/codecs.pyRTscCs|jj|S(N(RRX(R7RW((s/usr/lib64/python2.7/codecs.pyRXscCs|jj|jjdS(N(RRGR(R7((s/usr/lib64/python2.7/codecs.pyRGs icCsL|jj|||jj|dkrH|dkrH|jjndS(Ni(RSRYRRGR(R7RZR[((s/usr/lib64/python2.7/codecs.pyRYs cCs||j|S(s? Inherit all other methods from the underlying stream. (RS(R7R/R\((s/usr/lib64/python2.7/codecs.pyR]scCs|S(N((R7((s/usr/lib64/python2.7/codecs.pyR^scCs|jjdS(N(RSR_(R7R`RaRb((s/usr/lib64/python2.7/codecs.pyRcsN(R:R9R=tencodingRERhR4RzR|R~RRTRXRGRYR\R]R^Rc(((s/usr/lib64/python2.7/codecs.pyRs             cBseZdZdZdZddZddZddZddZ dZ d Z d Z d Z d Zed ZdZdZRS(sE StreamRecoder instances provide a frontend - backend view of encoding data. They use the complete set of APIs returned by the codecs.lookup() function to implement their task. Data written to the stream is first decoded into an intermediate format (which is dependent on the given codec combination) and then written to the stream using an instance of the provided Writer class. In the other direction, data is read from the stream using a Reader instance and then return encoded data to the caller. RR?cCsL||_||_||_||||_||||_||_dS(s Creates a StreamRecoder instance which implements a two-way conversion: encode and decode work on the frontend (the input to .read() and output of .write()) while Reader and Writer work on the backend (reading and writing to the stream). You can use these objects to do transparent direct recodings from e.g. latin-1 to utf-8 and back. stream must be a file-like object. encode, decode must adhere to the Codec interface, Reader, Writer must be factory functions or classes providing the StreamReader, StreamWriter interface resp. encode and decode are needed for the frontend translation, Reader and Writer for the backend translation. Unicode is used as intermediate encoding. Error handling is done in the same way as defined for the StreamWriter/Readers. N(RSR!R"RRRB(R7RSR!R"RRRB((s/usr/lib64/python2.7/codecs.pyREs    icCs1|jj|}|j||j\}}|S(N(RRhR!RB(R7RlRNt bytesencoded((s/usr/lib64/python2.7/codecs.pyRhscCsO|dkr|jj}n|jj|}|j||j\}}|S(N(R4RRzR!RB(R7RlRNR((s/usr/lib64/python2.7/codecs.pyRz"s  cCs7|jj}|j||j\}}|jdS(Ni(RRhR!RBRk(R7R{RNR((s/usr/lib64/python2.7/codecs.pyR|+scCs.|jj}|j||j\}}|S(s4 Return the next decoded line from the input stream.(RR~R!RB(R7RNR((s/usr/lib64/python2.7/codecs.pyR~1scCs|S(N((R7((s/usr/lib64/python2.7/codecs.pyR8scCs+|j||j\}}|jj|S(N(R"RBRRT(R7RNt bytesdecoded((s/usr/lib64/python2.7/codecs.pyRT;scCs:dj|}|j||j\}}|jj|S(NRC(RVR"RBRRT(R7RWRNR((s/usr/lib64/python2.7/codecs.pyRX@scCs|jj|jjdS(N(RRGR(R7((s/usr/lib64/python2.7/codecs.pyRGFs cCs||j|S(s? Inherit all other methods from the underlying stream. (RS(R7R/R\((s/usr/lib64/python2.7/codecs.pyR]KscCs|S(N((R7((s/usr/lib64/python2.7/codecs.pyR^RscCs|jjdS(N(RSR_(R7R`RaRb((s/usr/lib64/python2.7/codecs.pyRcUsN(R:R9R=t data_encodingt file_encodingRERhR4RzR|R~RRTRXRGR\R]R^Rc(((s/usr/lib64/python2.7/codecs.pyRs         trbR?icCs|dk rrd|krV|jjdd}|d tdkrVd|}qVnd|krr|d}qrntj|||}|dkr|St|}t||j|j |}||_ |S(s Open an encoded file using the given mode and return a wrapped version providing transparent encoding/decoding. Note: The wrapped version will only accept the object format defined by the codecs, i.e. Unicode objects for most builtin codecs. Output is also codec dependent and will usually be Unicode as well. Files are always opened in binary mode, even if no binary mode was specified. This is done to avoid data loss due to encodings using 8-bit values. The default file mode is 'rb' meaning to open the file in binary read mode. encoding specifies the encoding which is to be used for the file. errors may be given to define the error handling. It defaults to 'strict' which causes ValueErrors to be raised in case an encoding error occurs. buffering has the same meaning as for the builtin open() API. It defaults to line buffered. The returned wrapped file object provides an extra attribute .encoding which allows querying the used encoding. This attribute is only available if an encoding was specified as parameter. tURCitrwatrtbN( R4tstriptreplacetsett __builtin__RRRR3R2R(tfilenametmodeRRBt bufferingtfiletinfotsrw((s/usr/lib64/python2.7/codecs.pyRZs      cCsj|dkr|}nt|}t|}t||j|j|j|j|}||_||_|S(s Return a wrapped version of file which provides transparent encoding translation. Strings written to the wrapped file are interpreted according to the given data_encoding and then written to the original file as string using file_encoding. The intermediate encoding will usually be Unicode but depends on the specified codecs. Strings are read from the file using file_encoding and then passed back to the caller as string using data_encoding. If file_encoding is not given, it defaults to data_encoding. errors may be given to define the error handling. It defaults to 'strict' which causes ValueErrors to be raised in case an encoding error occurs. The returned wrapped file object provides two extra attributes .data_encoding and .file_encoding which reflect the given parameters of the same name. The attributes can be used for introspection by Python programs. N( R4RRR!R"R3R2RR(RRRRBt data_infot file_infotsr((s/usr/lib64/python2.7/codecs.pyRs      cCs t|jS(s Lookup up the codec for the given encoding and return its encoder function. Raises a LookupError in case the encoding cannot be found. (RR!(R((s/usr/lib64/python2.7/codecs.pyRscCs t|jS(s Lookup up the codec for the given encoding and return its decoder function. Raises a LookupError in case the encoding cannot be found. (RR"(R((s/usr/lib64/python2.7/codecs.pyRscCs.t|j}|dkr*t|n|S(s Lookup up the codec for the given encoding and return its IncrementalEncoder class or factory function. Raises a LookupError in case the encoding cannot be found or the codecs doesn't provide an incremental encoder. N(RR0R4t LookupError(Rtencoder((s/usr/lib64/python2.7/codecs.pyRs  cCs.t|j}|dkr*t|n|S(s Lookup up the codec for the given encoding and return its IncrementalDecoder class or factory function. Raises a LookupError in case the encoding cannot be found or the codecs doesn't provide an incremental decoder. N(RR1R4R(Rtdecoder((s/usr/lib64/python2.7/codecs.pyRs  cCs t|jS(s Lookup up the codec for the given encoding and return its StreamReader class or factory function. Raises a LookupError in case the encoding cannot be found. (RR3(R((s/usr/lib64/python2.7/codecs.pyRscCs t|jS(s Lookup up the codec for the given encoding and return its StreamWriter class or factory function. Raises a LookupError in case the encoding cannot be found. (RR2(R((s/usr/lib64/python2.7/codecs.pyR scksgt|||}x+|D]#}|j|}|r|VqqW|jdt}|rc|VndS(s Encoding iterator. Encodes the input strings from the iterator using an IncrementalEncoder. errors and kwargs are passed through to the IncrementalEncoder constructor. RCN(RR!R>(titeratorRRBtkwargsRRAtoutput((s/usr/lib64/python2.7/codecs.pyR#s   cksgt|||}x+|D]#}|j|}|r|VqqW|jdt}|rc|VndS(s Decoding iterator. Decodes the input strings from the iterator using an IncrementalDecoder. errors and kwargs are passed through to the IncrementalDecoder constructor. RCN(RR"R>(RRRBRRRAR((s/usr/lib64/python2.7/codecs.pyR$s   cCs%i}x|D]}||| dict Return a dictionary where elements of the rng sequence are mapped to themselves. ((trngtresti((s/usr/lib64/python2.7/codecs.pytmake_identity_dicts cCsJi}x=|jD]/\}}||kr8|||s             @(!1*IWt1&