summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter/guido/hanoi.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-25 17:50:20 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-25 17:50:20 (GMT)
commit856023a098c60ba0d2bcfd01c5cd8ccff7db97b5 (patch)
treee2af1c1b988b218c1408fac9db4b3dc3465819ea /Demo/tkinter/guido/hanoi.py
parent07e4f1565b8d922fe0df5cf3a15e113f7c562046 (diff)
downloadcpython-856023a098c60ba0d2bcfd01c5cd8ccff7db97b5.zip
cpython-856023a098c60ba0d2bcfd01c5cd8ccff7db97b5.tar.gz
cpython-856023a098c60ba0d2bcfd01c5cd8ccff7db97b5.tar.bz2
#3018: tkinter demo fixes for py3k.
Diffstat (limited to 'Demo/tkinter/guido/hanoi.py')
-rw-r--r--Demo/tkinter/guido/hanoi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/tkinter/guido/hanoi.py b/Demo/tkinter/guido/hanoi.py
index a29b1d7..34a0bba 100644
--- a/Demo/tkinter/guido/hanoi.py
+++ b/Demo/tkinter/guido/hanoi.py
@@ -125,11 +125,11 @@ class Tkhanoi:
# Main program
def main():
- import sys, string
+ import sys
# First argument is number of pegs, default 4
if sys.argv[1:]:
- n = string.atoi(sys.argv[1])
+ n = int(sys.argv[1])
else:
n = 4