diff options
Diffstat (limited to 'simplejson/scanner.py')
-rw-r--r-- | simplejson/scanner.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/simplejson/scanner.py b/simplejson/scanner.py index 6a0099f..b7918b3 100644 --- a/simplejson/scanner.py +++ b/simplejson/scanner.py @@ -41,6 +41,9 @@ class JSONDecodeError(ValueError): else: self.endlineno, self.endcolno = None, None + def __reduce__(self): + return self.__class__, (self.msg, self.doc, self.pos, self.end) + def linecol(doc, pos): lineno = doc.count('\n', 0, pos) + 1 |