summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter/guido/hanoi.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/tkinter/guido/hanoi.py')
-rwxr-xr-xDemo/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 100755
--- 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