Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba42664

Browse files
committed
fix typo in _setval() return value
1 parent 6700142 commit ba42664

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/dumbdbm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _setval(self, pos, val):
9494
f.seek(pos)
9595
f.write(val)
9696
f.close()
97-
return pos, (val)
97+
return (pos, len(val))
9898

9999
def _addkey(self, key, (pos, siz)):
100100
self._index[key] = (pos, siz)

0 commit comments

Comments
 (0)