Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/sum5.py @ 25219:8a7a2f1f88f0 legacy-trunk
Apply diff2.txt from SF patch http://www.python.org/sf/572113
(with one small bugfix in bgen/bgen/scantools.py)
This replaces string module functions with string methods
for the stuff in the Tools directory. Several uses of
string.letters etc. are still remaining.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Wed, 11 Sep 2002 20:36:02 +0000 |
| parents | 0ffb54b1c3ea |
| children | 64a9e1be3251 |
line wrap: on
line diff
--- a/Tools/scripts/sum5.py Wed Sep 11 19:40:10 2002 +0000 +++ b/Tools/scripts/sum5.py Wed Sep 11 20:36:02 2002 +0000 @@ -16,7 +16,6 @@ """ % bufsize import sys -import string import os import md5 import regsub @@ -89,7 +88,7 @@ if o == '-t': rmode = 'r' if o == '-s': - bufsize = string.atoi(a) + bufsize = int(a) if not args: args = ['-'] return sum(args, out)
