diff options
Diffstat (limited to 'Demo/tkinter/guido/hanoi.py')
-rwxr-xr-x | Demo/tkinter/guido/hanoi.py | 4 |
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 |