summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-01-25 18:35:24 (GMT)
committerGuido van Rossum <guido@python.org>1996-01-25 18:35:24 (GMT)
commitba426640ddeba29877ce9ebd750864aef7faeef9 (patch)
tree60ebe7a958d976d70975fca67afa28e14116e4bf
parent6700142d832d1ba1a5724878142ea081a87353f5 (diff)
downloadcpython-ba426640ddeba29877ce9ebd750864aef7faeef9.zip
cpython-ba426640ddeba29877ce9ebd750864aef7faeef9.tar.gz
cpython-ba426640ddeba29877ce9ebd750864aef7faeef9.tar.bz2
fix typo in _setval() return value
-rw-r--r--Lib/dumbdbm.py2
1 files changed, 1 insertions, 1 deletions
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)