summaryrefslogtreecommitdiff
path: root/Lib/test/sortperf.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 11:51:27 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 11:51:27 +0000
commit9c034cef51db10928b553a8c062d81546572cae2 (patch)
tree4089df51c82e3c285a71ac82e31e754b1370013f /Lib/test/sortperf.py
parent55026dd992109d6be86437a67010a7d7fcd92c7a (diff)
downloadcpython-9c034cef51db10928b553a8c062d81546572cae2.tar.gz
String method conversion.
Diffstat (limited to 'Lib/test/sortperf.py')
-rw-r--r--Lib/test/sortperf.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/sortperf.py b/Lib/test/sortperf.py
index 34ed338327..fd221945c8 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