Permalink
Browse files

Py3k fixes

  • Loading branch information...
1 parent 56d5918 commit 53960e83611d32689aed3e60bc964fb2339b7bf9 Stefan Behnel committed Mar 2, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 Demos/callback/run_cheese.py
  2. +1 −1 Demos/pyprimes.py
@@ -1,7 +1,7 @@
import cheese
def report_cheese(name):
- print "Found cheese:", name
+ print("Found cheese: " + name)
cheese.find(report_cheese)
View
@@ -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)

0 comments on commit 53960e8

Please sign in to comment.