Skip to content

Commit 928c68e

Browse files
bpo-38540: Revert a warning if PY_SSIZE_T_CLEAN is not defined. (GH-16876)
1 parent 175abcc commit 928c68e

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Python/getargs.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,19 +1176,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
11761176
trailing 0-byte
11771177
11781178
*/
1179-
int *q = NULL; Py_ssize_t *q2 = NULL;
1180-
if (flags & FLAG_SIZE_T) {
1181-
q2 = va_arg(*p_va, Py_ssize_t*);
1182-
}
1183-
else {
1184-
if (PyErr_WarnEx(PyExc_DeprecationWarning,
1185-
"PY_SSIZE_T_CLEAN will be required for '#' formats", 1))
1186-
{
1187-
Py_DECREF(s);
1188-
return NULL;
1189-
}
1190-
q = va_arg(*p_va, int*);
1191-
}
1179+
FETCH_SIZE;
11921180

11931181
format++;
11941182
if (q == NULL && q2 == NULL) {

0 commit comments

Comments
 (0)