diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 11:51:27 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 11:51:27 (GMT) |
commit | fc170b1fd5db978f4e8d4c23c138a7b59df681ec (patch) | |
tree | 3c73ffcba8f5ece8c64a086a362b7fbe65368048 /Lib/test/sortperf.py | |
parent | d8c628bd59f70b5389c39fd9e6a15cb3e2d46f27 (diff) | |
download | cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.zip cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.gz cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.bz2 |
String method conversion.
Diffstat (limited to 'Lib/test/sortperf.py')
-rw-r--r-- | Lib/test/sortperf.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/sortperf.py b/Lib/test/sortperf.py index 34ed338..fd22194 100644 --- a/Lib/test/sortperf.py +++ b/Lib/test/sortperf.py @@ -112,16 +112,15 @@ def main(): Extra arguments are used to seed the random generator. """ - import string # default range (inclusive) k1 = 15 k2 = 19 if sys.argv[1:]: # one argument: single point - k1 = k2 = string.atoi(sys.argv[1]) + k1 = k2 = int(sys.argv[1]) if sys.argv[2:]: # two arguments: specify range - k2 = string.atoi(sys.argv[2]) + k2 = int(sys.argv[2]) if sys.argv[3:]: # derive random seed from remaining arguments x, y, z = 0, 0, 0 |