Logo Search packages:      
Sourcecode: obnam version File versions  Download package

def obnamlib::repo::Repository::checksum (   self,
  data 
)
Return checksum of data.

The checksum is (currently) MD5.

Return a non-binary string (hexdigest) form of the checksum
so that it can easily be used for filenames, or printed to
log files, or whatever.

Definition at line 160 of file repo.py.

                            :
        '''Return checksum of data.
        
        The checksum is (currently) MD5.
        
        Return a non-binary string (hexdigest) form of the checksum
        so that it can easily be used for filenames, or printed to
        log files, or whatever.
        
        '''

        checksummer = self.new_checksummer()
        checksummer.update(data)
        return checksummer.hexdigest()


Generated by  Doxygen 1.6.0   Back to index