def get_kdb_reader(signature):
 if (signature[0] != BASE_SIGNATURE):
  raise IOError('Unknown base signature.')
 if (signature[1] not in _kdb_readers):
  raise IOError('Unknown sub signature.')
 return _kdb_readers[signature[1]]

def get_kdb_reader ( signature ) : if ( signature [ 0 ] != BASE_SIGNATURE ) : raise IOError ( 'Unknown base signature.' ) if ( signature [ 1 ] not in _kdb_readers ) : raise IOError ( 'Unknown sub signature.' ) return _kdb_readers [ signature [ 1 ] ]
retrieve the class used to process a keepass file by signature .