summaryrefslogtreecommitdiff
path: root/pyparsing/exceptions.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2020-06-25 21:21:38 -0500
committerptmcg <ptmcg@austin.rr.com>2020-06-25 21:21:38 -0500
commit2607db674fdae311bee2aaae5e15ce0fdaeb9302 (patch)
treebcc9bca9ff4627fc5abf979e9641dd65ba1e1609 /pyparsing/exceptions.py
parent5a3ae442ea014b373b290296e46d6c36b62aa905 (diff)
downloadpyparsing-git-2607db674fdae311bee2aaae5e15ce0fdaeb9302.tar.gz
More thorough ParseException.explain testing
Diffstat (limited to 'pyparsing/exceptions.py')
-rw-r--r--pyparsing/exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyparsing/exceptions.py b/pyparsing/exceptions.py
index 2a10180..d92212d 100644
--- a/pyparsing/exceptions.py
+++ b/pyparsing/exceptions.py
@@ -63,9 +63,9 @@ class ParseBaseException(Exception):
if isinstance(f_self, ParserElement):
if frm.f_code.co_name not in ("parseImpl", "_parseNoCache"):
continue
- if f_self in seen:
+ if id(f_self) in seen:
continue
- seen.add(f_self)
+ seen.add(id(f_self))
self_type = type(f_self)
ret.append(