[3.7] bpo-33509: Fix _warnings for module_globals=None (GH-6833) by miss-islington · Pull Request #6870 · python/cpython

Conversation

Don't crash on warnings.warn_explicit() if module_globals is not a dict.
(cherry picked from commit b056562)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

vstinner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@miss-islington

@vstinner: Backport status check is done, and it's a success ✅ .

@miss-islington

@vstinner

"@miss-islington: Thanks!"

Oh. You're welcome. It was a pleasure to work with you!