#NEWLINE# def _encode_signed_number( self , num ) : #NEWLINE# #INDENT# sgn_num = ( num << 1 ) #NEWLINE# if ( num < 0 ) : #NEWLINE# #INDENT# sgn_num = ( ~ sgn_num ) #NEWLINE# #UNINDENT# return self . _encode_number ( sgn_num )