Skip to content

Commit 65297cd

Browse files
committed
Resolve unused variable warning
1 parent cfeaa3c commit 65297cd

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

Python/sysmodule.c

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,13 @@ module sys
7575
#include "clinic/sysmodule.c.h"
7676

7777

78-
PyDoc_STRVAR(IncomingSysAbiflagsChange_msg,
79-
"sys.abiflags will be set to a meaningful value on all platforms "
80-
"in Python 3.16 instead of absent.\n\n"
81-
"Please consider using `warnings.simplefilter()` with the "
82-
"`warnings.catch_warnings()` context manager.\n"
83-
"Or update the code with `if sys.platform.startswith('win')` condition."
84-
);
85-
86-
#define WarnIncomingSysAbiflagsChange() \
87-
PyErr_WarnEx(PyExc_DeprecationWarning, \
88-
IncomingSysAbiflagsChange_msg, \
78+
#define WarnIncomingSysAbiflagsChange() \
79+
PyErr_WarnEx(PyExc_DeprecationWarning, \
80+
"sys.abiflags will be set to a meaningful value on all platforms " \
81+
"in Python 3.16 instead of absent.\n\n" \
82+
"Please consider using `warnings.simplefilter()` with the " \
83+
"`warnings.catch_warnings()` context manager.\n" \
84+
"Or update the code with `if sys.platform.startswith('win')` condition.", \
8985
/*stack_level=*/1)
9086

9187

0 commit comments

Comments
 (0)