Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Py3k fixes

  • Loading branch information...
commit 53960e83611d32689aed3e60bc964fb2339b7bf9 1 parent 56d5918
Stefan Behnel authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  Demos/callback/run_cheese.py
  2. +1 −1  Demos/pyprimes.py
View
2  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)
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.