#NEWLINE# def encode( self , value ) : #NEWLINE# #INDENT# if ( not isinstance ( self , numbers . Integral ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'expected an integer, not ' + repr ( value ) ) ) #NEWLINE# #UNINDENT# return str ( value ) . encode ( 'ascii' )