Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../lib64/python3..../encoding...
File: utf_16_be.py
""" Python 'utf-16-be' Codec
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
Written by Marc-Andre Lemburg (mal@lemburg.com).
[3] Fix | Delete
[4] Fix | Delete
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
[5] Fix | Delete
[6] Fix | Delete
"""
[7] Fix | Delete
import codecs
[8] Fix | Delete
[9] Fix | Delete
### Codec APIs
[10] Fix | Delete
[11] Fix | Delete
encode = codecs.utf_16_be_encode
[12] Fix | Delete
[13] Fix | Delete
def decode(input, errors='strict'):
[14] Fix | Delete
return codecs.utf_16_be_decode(input, errors, True)
[15] Fix | Delete
[16] Fix | Delete
class IncrementalEncoder(codecs.IncrementalEncoder):
[17] Fix | Delete
def encode(self, input, final=False):
[18] Fix | Delete
return codecs.utf_16_be_encode(input, self.errors)[0]
[19] Fix | Delete
[20] Fix | Delete
class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
[21] Fix | Delete
_buffer_decode = codecs.utf_16_be_decode
[22] Fix | Delete
[23] Fix | Delete
class StreamWriter(codecs.StreamWriter):
[24] Fix | Delete
encode = codecs.utf_16_be_encode
[25] Fix | Delete
[26] Fix | Delete
class StreamReader(codecs.StreamReader):
[27] Fix | Delete
decode = codecs.utf_16_be_decode
[28] Fix | Delete
[29] Fix | Delete
### encodings module API
[30] Fix | Delete
[31] Fix | Delete
def getregentry():
[32] Fix | Delete
return codecs.CodecInfo(
[33] Fix | Delete
name='utf-16-be',
[34] Fix | Delete
encode=encode,
[35] Fix | Delete
decode=decode,
[36] Fix | Delete
incrementalencoder=IncrementalEncoder,
[37] Fix | Delete
incrementaldecoder=IncrementalDecoder,
[38] Fix | Delete
streamreader=StreamReader,
[39] Fix | Delete
streamwriter=StreamWriter,
[40] Fix | Delete
)
[41] Fix | Delete
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function