commit | d13169fc5ac7572a272cbcff830c3d96ba27cc7c | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Sat May 19 01:53:13 2018 +0200 |
committer | GitHub <noreply@github.com> | Sat May 19 01:53:13 2018 +0200 |
tree | 8fe53d355aa9ba0e514a46abb36ba67e5497d57e | |
parent | 6a8954a91a30954b5c4aa469ced9d14702cf2c58 [diff] [blame] |
bpo-16055: Fixes incorrect error text for int('1', base=1000) (#6980) Fixes incorrect error text for int('1', base=1000) and long('1', base=1000).
diff --git a/Objects/intobject.c b/Objects/intobject.c index 3ab00af..9b27c35 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c
@@ -358,7 +358,7 @@ if ((base != 0 && base < 2) || base > 36) { PyErr_SetString(PyExc_ValueError, - "int() base must be >= 2 and <= 36"); + "int() base must be >= 2 and <= 36, or 0"); return NULL; }