From 53960e83611d32689aed3e60bc964fb2339b7bf9 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 2 Mar 2008 11:59:40 +0100 Subject: [PATCH] Py3k fixes --- Demos/callback/run_cheese.py | 2 +- Demos/pyprimes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Demos/callback/run_cheese.py b/Demos/callback/run_cheese.py index 65fd431b..2e5d6cbc 100644 --- a/Demos/callback/run_cheese.py +++ b/Demos/callback/run_cheese.py @@ -1,7 +1,7 @@ import cheese def report_cheese(name): - print "Found cheese:", name + print("Found cheese: " + name) cheese.find(report_cheese) diff --git a/Demos/pyprimes.py b/Demos/pyprimes.py index edcce852..7c524224 100644 --- a/Demos/pyprimes.py +++ b/Demos/pyprimes.py @@ -4,7 +4,7 @@ def primes(kmax): n = 2 while k < kmax: i = 0 - while i < k and n % p[i] <> 0: + while i < k and n % p[i] != 0: i = i + 1 if i == k: p.append(n) -- 2.26.2