summaryrefslogtreecommitdiff
path: root/src/pyparsing.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@austin.rr.com>2016-08-11 07:40:43 +0000
committerPaul McGuire <ptmcg@austin.rr.com>2016-08-11 07:40:43 +0000
commit3d2ab4524797bb6477dcb23c9c6b77bb10f9edba (patch)
tree8369928569165b33758435fec8268fe3234f4bad /src/pyparsing.py
parent28b014ab32af09a19b2def30e003ecfb903dcab3 (diff)
downloadpyparsing-git-3d2ab4524797bb6477dcb23c9c6b77bb10f9edba.tar.gz
Remove dangling ref to _generatorType
Diffstat (limited to 'src/pyparsing.py')
-rw-r--r--src/pyparsing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyparsing.py b/src/pyparsing.py
index 1146943..0e1e4e8 100644
--- a/src/pyparsing.py
+++ b/src/pyparsing.py
@@ -349,7 +349,7 @@ class ParseResults(object):
toklist = []
if isinstance(toklist, list):
self.__toklist = toklist[:]
- elif isinstance(toklist, _generatorType):
+ elif isinstance(toklist, collections.Iterable):
self.__toklist = list(toklist)
else:
self.__toklist = [toklist]