Skip to content

Commit 165a573

Browse files
committed
Use PyObject_GetAttr.
1 parent 2466cec commit 165a573

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

Include/internal/pycore_global_objects_fini_generated.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_global_strings.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ struct _Py_global_strings {
238238
STRUCT_FOR_ID(_feature_version)
239239
STRUCT_FOR_ID(_field_types)
240240
STRUCT_FOR_ID(_fields_)
241+
STRUCT_FOR_ID(_filters)
241242
STRUCT_FOR_ID(_finalizing)
242243
STRUCT_FOR_ID(_find_and_load)
243244
STRUCT_FOR_ID(_fix_up_module)

Include/internal/pycore_runtime_init_generated.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_unicodeobject_generated.h

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/_warnings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ get_warnings_context_filters(PyInterpreterState *interp)
288288
Py_DECREF(ctx);
289289
Py_RETURN_NONE;
290290
}
291-
PyObject *context_filters = PyObject_GetAttrString(ctx, "_filters");
291+
PyObject *context_filters = PyObject_GetAttr(ctx, &_Py_ID(_filters));
292292
Py_DECREF(ctx);
293293
if (context_filters == NULL) {
294294
return NULL;

0 commit comments

Comments
 (0)