Skip to content

Commit 2c53b48

Browse files
Apply suggestions from code review
Co-authored-by: Adam Turner <[email protected]>
1 parent b161565 commit 2c53b48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Modules/_decimal/_decimal.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2912,7 +2912,8 @@ _decimal_Decimal_from_float_impl(PyTypeObject *type, PyObject *pyfloat)
29122912
CURRENT_CONTEXT(state, context);
29132913
result = PyDecType_FromFloatExact(state->PyDec_Type, pyfloat, context);
29142914
if (type != state->PyDec_Type && result != NULL) {
2915-
Py_SETREF(result, PyObject_CallFunctionObjArgs((PyObject *)type, result, NULL));
2915+
Py_SETREF(result,
2916+
PyObject_CallFunctionObjArgs((PyObject *)type, result, NULL));
29162917
}
29172918

29182919
return result;
@@ -2976,7 +2977,8 @@ _decimal_Decimal_from_number_impl(PyTypeObject *type, PyObject *number)
29762977
CURRENT_CONTEXT(state, context);
29772978
result = PyDecType_FromNumberExact(state->PyDec_Type, number, context);
29782979
if (type != state->PyDec_Type && result != NULL) {
2979-
Py_SETREF(result, PyObject_CallFunctionObjArgs((PyObject *)type, result, NULL));
2980+
Py_SETREF(result,
2981+
PyObject_CallFunctionObjArgs((PyObject *)type, result, NULL));
29802982
}
29812983

29822984
return result;

0 commit comments

Comments
 (0)