#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# if ( not self . parsed ) : #NEWLINE# #INDENT# return self . body #NEWLINE# #UNINDENT# rval = ( 'Digest username="%s",realm="%s",nonce="%s",uri="%s",response="%s"' % ( self . username , self . realm , self . nonce , self . uri , self . response ) ) #NEWLINE# if ( self . qop != None ) : #NEWLINE# #INDENT# rval += ( ',nc="%s",cnonce="%s",qop=%s' % ( self . nc , self . cnonce , self . qop ) ) #NEWLINE# #UNINDENT# for param in self . otherparams : #NEWLINE# #INDENT# rval += ( ',%s=%s' % param ) #NEWLINE# #UNINDENT# return rval