#NEWLINE# def decode( self , value , value_type ) : #NEWLINE# #INDENT# '\n        Take a value blob and its value_type one-char code and convert it back\n        to a python object\n        ' #NEWLINE# if ( value_type == 'i' ) : #NEWLINE# #INDENT# return int ( value ) #NEWLINE# #UNINDENT# if ( value_type == 'z' ) : #NEWLINE# #INDENT# value = zlib . decompress ( value ) #NEWLINE# value_type = 'p' #NEWLINE# #UNINDENT# if ( value_type == 'p' ) : #NEWLINE# #INDENT# return pickle . loads ( force_bytes ( value ) ) #NEWLINE# #UNINDENT# raise ValueError ( "Unknown value_type '{}' read from the cache table." . format ( value_type ) )