commit | c57e6e2e52d5d8b4005753bed789d99ebe407fb6 | [log] [tgz] |
---|---|---|
author | Anthony Sottile <asottile@umich.edu> | Tue Nov 27 10:39:49 2018 -0800 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Tue Nov 27 20:39:49 2018 +0200 |
tree | 3ef4b574f1a50ca526ce31184ce39824b28c029b | |
parent | d4f9cf5545d6d8844e0726552ef2e366f5cc3abd [diff] [blame] |
bpo-35312: Make lib2to3.pgen2.parse.ParseError round-trip pickle-able. (GH-10710)
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 @@ 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.