Show More
@@ -19,7 +19,7 b'' | |||||
19 |
|
19 | |||
20 | create random Python file to exercise Pygments |
|
20 | create random Python file to exercise Pygments | |
21 |
|
21 | |||
22 | $ cat <<EOF > primes.py |
|
22 | $ cat <<NO_CHECK_EOF > primes.py | |
23 | > """Fun with generators. Corresponding Haskell implementation: |
|
23 | > """Fun with generators. Corresponding Haskell implementation: | |
24 | > |
|
24 | > | |
25 | > primes = 2 : sieve [3, 5..] |
|
25 | > primes = 2 : sieve [3, 5..] | |
@@ -51,7 +51,7 b' create random Python file to exercise Py' | |||||
51 | > n = 10 |
|
51 | > n = 10 | |
52 | > p = primes() |
|
52 | > p = primes() | |
53 | > print("The first %d primes: %s" % (n, list(itertools.islice(p, n)))) |
|
53 | > print("The first %d primes: %s" % (n, list(itertools.islice(p, n)))) | |
54 | > EOF |
|
54 | > NO_CHECK_EOF | |
55 | $ echo >> primes.py # to test html markup with an empty line just before EOF |
|
55 | $ echo >> primes.py # to test html markup with an empty line just before EOF | |
56 | $ hg ci -Ama |
|
56 | $ hg ci -Ama | |
57 | adding primes.py |
|
57 | adding primes.py |
General Comments 0
You need to be logged in to leave comments.
Login now