From ba426640ddeba29877ce9ebd750864aef7faeef9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 25 Jan 1996 18:35:24 +0000 Subject: fix typo in _setval() return value --- Lib/dumbdbm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py index f0be061..e356733 100644 --- a/Lib/dumbdbm.py +++ b/Lib/dumbdbm.py @@ -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) -- cgit v0.12