diff options
author | Tim Peters <tim.peters@gmail.com> | 2005-08-26 15:20:46 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2005-08-26 15:20:46 (GMT) |
commit | 9e34c047325651853a95f95e538582a4f6d5b7f6 (patch) | |
tree | 97ba789e8889e26e3fd5bd729d01d5e8e2c15d70 /Lib/test/test_generators.py | |
parent | e8889c5741b636aa798757eb5500d304b1704344 (diff) | |
download | cpython-9e34c047325651853a95f95e538582a4f6d5b7f6.zip cpython-9e34c047325651853a95f95e538582a4f6d5b7f6.tar.gz cpython-9e34c047325651853a95f95e538582a4f6d5b7f6.tar.bz2 |
Whitespace normalization (via reindent.py).
Diffstat (limited to 'Lib/test/test_generators.py')
-rw-r--r-- | Lib/test/test_generators.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index fb88ffa..d226043 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -709,18 +709,18 @@ are quite straightforwardly expressed with this Python idiom. Ye olde Fibonacci generator, tee style. >>> def fib(): -... +... ... def _isum(g, h): ... while 1: ... yield g.next() + h.next() -... +... ... def _fib(): ... yield 1 ... yield 2 ... fibTail.next() # throw first away ... for res in _isum(fibHead, fibTail): ... yield res -... +... ... fibHead, fibTail, fibRes = tee(_fib(), 3) ... return fibRes |