summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-10-11 09:40:17 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-10-11 09:40:17 (GMT)
commit0caa5766a39e6ccc3d4568c5fe44038c6fd49985 (patch)
treed1bd01706ed56c7ecc3981f0c0af79847f585d93 /Demo
parentedbc50cd0eb8156ba22d056ecd750d76f7651ec5 (diff)
downloadcpython-0caa5766a39e6ccc3d4568c5fe44038c6fd49985.zip
cpython-0caa5766a39e6ccc3d4568c5fe44038c6fd49985.tar.gz
cpython-0caa5766a39e6ccc3d4568c5fe44038c6fd49985.tar.bz2
Merged revisions 75346 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75346 | mark.dickinson | 2009-10-11 10:35:57 +0100 (Sun, 11 Oct 2009) | 1 line Fix 'primes 0 1' ........
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/scripts/primes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/scripts/primes.py b/Demo/scripts/primes.py
index 65da42e..d296f0e 100755
--- a/Demo/scripts/primes.py
+++ b/Demo/scripts/primes.py
@@ -3,7 +3,7 @@
# Print prime numbers in a given range
def primes(min, max):
- if 2 >= min:
+ if max >= 2 >= min:
print(2)
primes = [2]
i = 3