From 16fc81366de0b3312db4bcae3b7fdc8b6a0b68ed Mon Sep 17 00:00:00 2001 From: Bill Ladwig Date: Fri, 2 Dec 2016 12:22:34 -0700 Subject: [PATCH] fixed a comment --- src/wrf/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrf/util.py b/src/wrf/util.py index 50f7949..18a116f 100644 --- a/src/wrf/util.py +++ b/src/wrf/util.py @@ -191,7 +191,7 @@ def _generator_copy(gen): """ funcname = gen.__name__ - # This is for generator comprehensions. Only solution is to tee the + # This is for generator expressions. Only solution is to tee the # original generator. if funcname == "": return tee(gen) @@ -327,7 +327,7 @@ class IterWrapper(Iterable): if isinstance(self._wrapped, GeneratorType): gen_copy = _generator_copy(self._wrapped) - # If a tuple comes back, then this is a generator comprehension, + # If a tuple comes back, then this is a generator expression, # so store the first tee'd item, then return the other if isinstance(gen_copy, tuple): self._wrapped = gen_copy[0]