Commit 3c6644d1 authored by Guido van Rossum's avatar Guido van Rossum

fix typo in _setval() return value

parent b0d3a659
......@@ -94,7 +94,7 @@ class _Database:
f.seek(pos)
f.write(val)
f.close()
return pos, (val)
return (pos, len(val))
def _addkey(self, key, (pos, siz)):
self._index[key] = (pos, siz)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment