summaryrefslogtreecommitdiffstats
path: root/Tools/demo/sortvisu.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/demo/sortvisu.py')
-rwxr-xr-xTools/demo/sortvisu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/demo/sortvisu.py b/Tools/demo/sortvisu.py
index 8447bc7..056a0e0 100755
--- a/Tools/demo/sortvisu.py
+++ b/Tools/demo/sortvisu.py
@@ -444,7 +444,7 @@ def quicksort(array):
array.wait(1000)
left = first
right = last
- while 1:
+ while True:
array.message("Sweep right pointer")
right = right-1
array.show_right(right)
@@ -473,7 +473,7 @@ def quicksort(array):
array.hide_partition()
def demosort(array):
- while 1:
+ while True:
for alg in [quicksort, insertionsort, selectionsort, bubblesort]:
randomize(array)
alg(array)