]> granicus.if.org Git - python/commitdiff
[3.5] Fix the signature of JSONDecodeError (no end parameter). (GH-1827) (#1829)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 27 May 2017 13:37:25 +0000 (16:37 +0300)
committerGitHub <noreply@github.com>
Sat, 27 May 2017 13:37:25 +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 517f9cecfd781462d85ac5fe96155660ccee4801..30c2911d901a865dc9133c4e15414d4df4168eb7 100644 (file)
@@ -485,7 +485,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: