Skip to content

Commit b880dd1

Browse files
committed
Minor code improvement to _warnings.c.
1 parent 47d0b6f commit b880dd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/_warnings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,10 @@ get_filter(PyInterpreterState *interp, PyObject *category,
513513

514514
/* check _warning_context _filters list */
515515
PyObject *context_filters = get_warnings_context_filters(interp);
516-
bool use_global_filters = false;
517516
if (context_filters == NULL) {
518517
return NULL;
519518
}
519+
bool use_global_filters = false;
520520
if (context_filters == Py_None) {
521521
use_global_filters = true;
522522
} else {

0 commit comments

Comments
 (0)