bpo-33509: Fix _warnings for module_globals=None by vstinner · Pull Request #6833 · python/cpython

@vstinner

Don't crash on warnings.warn_explicit() if module_globals is None.

1st1

1st1 approved these changes May 14, 2018

serhiy-storchaka

@vstinner

@vstinner

serhiy-storchaka

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

May 15, 2018
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>

miss-islington added a commit that referenced this pull request

May 15, 2018
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>