Skip to content

Commit bb973ea

Browse files
Update Python/sysmodule.c
Co-authored-by: Tomas R. <[email protected]>
1 parent 0f1938b commit bb973ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Python/sysmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,8 +2132,9 @@ sys__clear_type_cache_impl(PyObject *module)
21322132
/*[clinic end generated code: output=20e48ca54a6f6971 input=3997d1000692310e]*/
21332133
{
21342134
if (PyErr_WarnEx(PyExc_DeprecationWarning,
2135-
"sys._clear_type_cache() is deprecated "
2136-
"and will be removed in future python versions", 1)) {
2135+
"sys._clear_type_cache() is deprecated and scheduled for removal in a "
2136+
"future version. Use the more general sys._clear_internal_caches() "
2137+
"function instead.", 1)) {
21372138
return NULL;
21382139
}
21392140
PyType_ClearCache();

0 commit comments

Comments
 (0)