summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/pgen2/parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib2to3/pgen2/parse.py')
-rw-r--r--Lib/lib2to3/pgen2/parse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/lib2to3/pgen2/parse.py b/Lib/lib2to3/pgen2/parse.py
index 6bebdbb..cf3fcf7 100644
--- a/Lib/lib2to3/pgen2/parse.py
+++ b/Lib/lib2to3/pgen2/parse.py
@@ -24,6 +24,9 @@ class ParseError(Exception):
self.value = value
self.context = context
+ def __reduce__(self):
+ return type(self), (self.msg, self.type, self.value, self.context)
+
class Parser(object):
"""Parser engine.