#NEWLINE# def serialize( self , value , display = False ) : #NEWLINE# #INDENT# lookup = dict ( ( ( self , k ) for ( k , v ) in self . levels . items ( ) ) ) #NEWLINE# if ( value in lookup ) : #NEWLINE# #INDENT# return lookup [ value ] #NEWLINE# #UNINDENT# return b''