Skip to content

Commit 81304ef

Browse files
committed
Update deprecation message
1 parent d17f21a commit 81304ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/_decimal/_decimal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3764,7 +3764,8 @@ _decimal_Decimal___format___impl(PyObject *dec, PyTypeObject *cls,
37643764

37653765
if (size > 0 && fmt[size-1] == 'N') {
37663766
if (PyErr_WarnEx(PyExc_DeprecationWarning,
3767-
"Format specifier 'N' is deprecated", 1) < 0) {
3767+
"Format specifier 'N' is deprecated and "
3768+
"slated for removal in Python 3.18", 1) < 0) {
37683769
return NULL;
37693770
}
37703771
}

0 commit comments

Comments
 (0)