diff options
| author | Guido van Rossum <guido@python.org> | 2001-09-04 19:14:14 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2001-09-04 19:14:14 +0000 |
| commit | 54e54c6877329e105406c48490f218faff59db39 (patch) | |
| tree | 6bbdf1f6efaa2253af424f59dc9564a5458d6739 /Lib/dumbdbm.py | |
| parent | b8f22749853cf79bfbe3709309e67d1a448f4cab (diff) | |
| download | cpython-git-54e54c6877329e105406c48490f218faff59db39.tar.gz | |
The first batch of changes recommended by the fixdiv tool. These are
mostly changes of / operators into //. Once or twice I did more or
less than recommended.
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 e5083492e3..287a8a0c1b 100644 --- a/Lib/dumbdbm.py +++ b/Lib/dumbdbm.py @@ -87,7 +87,7 @@ class _Database: ## Does not work under MW compiler ## pos = ((pos + _BLOCKSIZE - 1) / _BLOCKSIZE) * _BLOCKSIZE ## f.seek(pos) - npos = ((pos + _BLOCKSIZE - 1) / _BLOCKSIZE) * _BLOCKSIZE + npos = ((pos + _BLOCKSIZE - 1) // _BLOCKSIZE) * _BLOCKSIZE f.write('\0'*(npos-pos)) pos = npos |
