124
141
elif str(row[0]) != revid:
132
146
def set(self, key, revid, data):
139
149
'delete from data where key = ?', (dbapi2.Binary(key), ))
142
152
"insert into data (key, revid, data) values (?, ?, ?)",
143
list(map(dbapi2.Binary, [key, revid, blob])))
153
map(dbapi2.Binary, [key, revid, blob]))
145
155
except dbapi2.IntegrityError:
146
156
# If another thread or process attempted to set the same key, we