]> granicus.if.org Git - python/commitdiff
[3.6] Fix the signature of JSONDecodeError (no end parameter). (GH-1827) (#1828)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 27 May 2017 13:37:11 +0000 (16:37 +0300)
committerGitHub <noreply@github.com>
Sat, 27 May 2017 13:37:11 +0000 (16:37 +0300)
Unlikely to the simplejson module, json.JSONDecodeError doesn't accept the end argument.
(cherry picked from commit 5becf38)

Doc/library/json.rst

index 8103c614aaf4500713f9227a407183ebac71c867..fdbdcb169fab09095b5667d525b9d3dbc8bc9b5d 100644 (file)
@@ -503,7 +503,7 @@ Encoders and Decoders
 Exceptions
 ----------
 
-.. exception:: JSONDecodeError(msg, doc, pos, end=None)
+.. exception:: JSONDecodeError(msg, doc, pos)
 
    Subclass of :exc:`ValueError` with the following additional attributes: