mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Run 2to3 over the Demo/ directory to shut up parse errors from 2to3 about lingering print statements.
This commit is contained in:
parent
a8c360ee76
commit
6f2df4d5e1
132 changed files with 1070 additions and 1080 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue