Amend comments: do not be confused about generators and iterators
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 29 Nov 2012 07:05:21 +0000 (09:05 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 29 Nov 2012 07:05:21 +0000 (09:05 +0200)
commitc1370b3bc84b65673b75c04a00a84f7052630a78
tree9835c536d16d0d9cb6843e7085b0895a484ef2bb
parente42ab6ab6c6c35ef3fa05434b839d9c563cd1534
Amend comments: do not be confused about generators and iterators

Iterators and generators are not the same things. Generators is a more narrow
concept. Generators are functions which yield elements.

Fix up commentaries where I mixed these terms. Call all my functions with
'yield' - generators. Also, prefer saying 'generator yields' to 'generators
generates' just to be more clear about what I am trying to say.

Fix a couple misspelled words and confusing sentences while on it.

No functional changes.

Change-Id: Ia87b1a6441c293aab2ad45e2cb762f388b49ea35
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptools/BmapCopy.py
bmaptools/Fiemap.py
tests/helpers.py
tests/test_api_base.py
tests/test_fiemap.py