diff options
Diffstat (limited to 'pyparsing/exceptions.py')
-rw-r--r-- | pyparsing/exceptions.py | 4 |
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( |