diff options
Diffstat (limited to 'Lib/dumbdbm.py')
-rw-r--r-- | Lib/dumbdbm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py index 0ae1e82..200bc7f 100644 --- a/Lib/dumbdbm.py +++ b/Lib/dumbdbm.py @@ -79,7 +79,7 @@ class _Database: def _addval(self, val): f = _open(self._datfile, 'rb+') f.seek(0, 2) - pos = f.tell() + pos = int(f.tell()) ## Does not work under MW compiler ## pos = ((pos + _BLOCKSIZE - 1) / _BLOCKSIZE) * _BLOCKSIZE ## f.seek(pos) |