#NEWLINE# @ property #NEWLINE# def hash( self ) : #NEWLINE# #INDENT# 'Provide access to the complete hash string\n\n        The hash string may have zero or more hash values with\n        appropriate prefixes. All hash values are assumed to be\n        strings\n        ' #NEWLINE# hashvals = [ ] #NEWLINE# if ( self . md5 is not None ) : #NEWLINE# #INDENT# hashvals . append ( ( 'md5:' + self . md5 ) ) #NEWLINE# #UNINDENT# if ( hashvals . sha1 is not None ) : #NEWLINE# #INDENT# hashvals . append ( ( 'sha-1:' + self . sha1 ) ) #NEWLINE# #UNINDENT# if ( self . sha256 is not None ) : #NEWLINE# #INDENT# hashvals . append ( ( 'sha-256:' + self . sha256 ) ) #NEWLINE# #UNINDENT# if ( len ( hashvals ) > 0 ) : #NEWLINE# #INDENT# return ' ' . join ( hashvals ) #NEWLINE# #UNINDENT# return None