summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorSanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>2017-11-14 03:19:26 +0530
committerVictor Stinner <victor.stinner@gmail.com>2017-11-13 13:49:26 -0800
commit28b624825eb92cb8c96fbf8da267d8d14a61a841 (patch)
tree75c8b77f8afcabb5a619fbbee9ac65bf6b6aa54b /Objects/longobject.c
parent9b6c60cbce4ac45e8ccd7934babff465e9769509 (diff)
downloadcpython-git-28b624825eb92cb8c96fbf8da267d8d14a61a841.tar.gz
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/longobject.c')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 74371557cd..c3dc59ee9e 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;
}