Run 2to3 over the Demo/ directory to shut up parse errors from 2to3 about lingering print statements.

This commit is contained in:
Collin Winter 2007-07-17 20:59:35 +00:00
parent a8c360ee76
commit 6f2df4d5e1
132 changed files with 1070 additions and 1080 deletions

View file

@ -12,7 +12,7 @@ def main():
primes(min, max)
def primes(min, max):
if 2 >= min: print 2
if 2 >= min: print(2)
primes = [2]
i = 3
while i <= max:
@ -20,7 +20,7 @@ def primes(min, max):
if i%p == 0 or p*p > i: break
if i%p != 0:
primes.append(i)
if i >= min: print i
if i >= min: print(i)
i = i+2
if __name__ == "__main__":