Kaydet (Commit) 58cbae22 authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Victor Stinner

bpo-16055: Fixes incorrect error text for int('1', base=1000) (GH-4376) (#4389)

(cherry picked from commit 28b62482)
üst 18056fb1
...@@ -4820,7 +4820,7 @@ long_new(PyTypeObject *type, PyObject *args, PyObject *kwds) ...@@ -4820,7 +4820,7 @@ long_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
return NULL; return NULL;
if ((base != 0 && base < 2) || base > 36) { if ((base != 0 && base < 2) || base > 36) {
PyErr_SetString(PyExc_ValueError, PyErr_SetString(PyExc_ValueError,
"int() base must be >= 2 and <= 36"); "int() base must be >= 2 and <= 36, or 0");
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment