

def reopenReadOnly(self, mode='r'):
    'save existing data and reopen in read-only mode'
    self.close()
    self.seqIDdict = classutil.open_shelve((self.filename + '.seqIDdict'), mode)
    self.IDdict = classutil.open_shelve((self.filename + '.idDict'), self)

dataset/ETHPy150Open cjlee112/pygr/pygr/nlmsa_utils.py NLMSASeqDict.reopenReadOnly/VarMisuse@57/101 `mode`->`self`