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', mode)
dataset/ETHPy150Open cjlee112/pygr/pygr/nlmsa_utils.py/NLMSASeqDict.reopenReadOnly/operator `+` -> `*`