From 2375582c860eb09aaf57faa81c5dadc72f2068c8 Mon Sep 17 00:00:00 2001 From: ptmcg Date: Wed, 27 Jul 2016 21:39:08 +0000 Subject: Modified init for Py2 compatibility (need args attribute for exception construction during packratting) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@378 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b --- src/pyparsing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyparsing.py b/src/pyparsing.py index c66673e..5fcbf5e 100644 --- a/src/pyparsing.py +++ b/src/pyparsing.py @@ -189,6 +189,7 @@ class ParseBaseException(Exception): self.msg = msg self.pstr = pstr self.parserElement = elem + self.args = (pstr, loc, msg) def __getattr__( self, aname ): """supported attributes by name are: -- cgit v1.2.1