<s> """<STR_LIT>""" <EOL> import base64 <EOL> import binascii <EOL> from dfvfs . encoding import decoder <EOL> from dfvfs . encoding import manager <EOL> from dfvfs . lib import definitions <EOL> from dfvfs . lib import errors <EOL> class Base16Decoder ( decoder . Decoder ) : <EOL> """<STR_LIT>""" <EOL> ENCODING_METHOD = definitions . ENCODING_METHOD_BASE16 <EOL> def Decode ( self , encoded_data ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> decoded_data = base64 . b16decode ( encoded_data , casefold = False ) <EOL> except ( TypeError , binascii . Error ) as exception : <EOL> raise errors . BackEndError ( <EOL> u'<STR_LIT>' . format ( <EOL> exception ) ) <EOL> return decoded_data , b'<STR_LIT>' <EOL> manager . EncodingManager . RegisterDecoder ( Base16Decoder ) </s>
