def edit_record(self, record):
        new_record = list(record)
        new_record[0] = self.prompt('Name [%s]: ' % record[0], required=False) or record[0]
        new_record[1] = self.prompt('Username [%s]: ' % record[1], required=False) or record[1]
        pw = self.prompt('Password []/g: ', required=False, password=True) or record[2]
        if pw == 'g':
            new_record[2] = gen_password_entropy(128)
        elif pw:
            new_record[2] = pw
        self.output.write("Notes: %s\n" % record[3])
        edit = self.prompt('Edit? [n]: ', required=False) or 'n'
        if edit[0] == 'y':
            new_record[3] = edit_in_editor(record[3])
        return tuple(new_record)
dataset/ETHPy150Open gavinwahl/sdb/sdb/passwords.py/InteractiveSession.edit_record/original