summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>2017-11-13 21:49:26 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-11-13 21:49:26 (GMT)
commit28b624825eb92cb8c96fbf8da267d8d14a61a841 (patch)
tree75c8b77f8afcabb5a619fbbee9ac65bf6b6aa54b /Objects
parent9b6c60cbce4ac45e8ccd7934babff465e9769509 (diff)
downloadcpython-28b624825eb92cb8c96fbf8da267d8d14a61a841.zip
cpython-28b624825eb92cb8c96fbf8da267d8d14a61a841.tar.gz
cpython-28b624825eb92cb8c96fbf8da267d8d14a61a841.tar.bz2
bpo-16055: Fixes incorrect error text for int('1', base=1000) (#4376)
* bpo-16055: Fixes incorrect error text for int('1', base=1000) * bpo-16055: Address review comments
Diffstat (limited to 'Objects')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 7437155..c3dc59e 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -4808,7 +4808,7 @@ long_new_impl(PyTypeObject *type, PyObject *x, PyObject *obase)
return NULL;
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;
}