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

def obnamlib::repo::Repository::check_format_version (   self )
Verify that on-disk format version is compatbile.

If not, raise BadFormat.

Definition at line 294 of file repo.py.

                                  :
        '''Verify that on-disk format version is compatbile.
        
        If not, raise BadFormat.
        
        '''
        
        on_disk = self.get_format_version()
        if on_disk is not None and not self.acceptable_version(on_disk):
            raise BadFormat('On-disk format %s is incompatible '
                            'with program format %s' %
                                (on_disk, self.format_version))
        

Generated by  Doxygen 1.6.0   Back to index