Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135d5f4 commit eb588a1Copy full SHA for eb588a1
1 file changed
Python/ceval.c
@@ -3399,10 +3399,10 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
3399
/* If there's a conversion function, call it and replace
3400
value with that result. Otherwise, just use value,
3401
without conversion. */
3402
- if (conv_fn) {
+ if (conv_fn != NULL) {
3403
result = conv_fn(value);
3404
Py_DECREF(value);
3405
- if (!result) {
+ if (result == NULL) {
3406
Py_XDECREF(fmt_spec);
3407
goto error;
3408
}
@@ -3422,8 +3422,9 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
3422
result = PyObject_Format(value, fmt_spec);
3423
3424
3425
- if (!result)
3426
3427
+ }
3428
3429
3430
PUSH(result);
0 commit comments