#NEWLINE# def valueDecoder( self , fullSubstrate , substrate , asn1Spec , tagSet , length , state , decodeFun , substrateFun ) : #NEWLINE# #INDENT# ( head , tail ) = ( substrate [ : length ] , substrate [ length : ] ) #NEWLINE# if ( not head ) : #NEWLINE# #INDENT# raise error . PyAsn1Error ( 'Empty substrate' ) #NEWLINE# #UNINDENT# byte = oct2int ( head [ 0 ] ) #NEWLINE# if ( byte == 255 ) : #NEWLINE# #INDENT# value = 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( byte == 0 ) : #NEWLINE# #INDENT# value = 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise error . PyAsn1Error ( ( 'Boolean CER violation: %s' % byte ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( self . _createComponent ( asn1Spec , tagSet , value ) , tail )