bpo-37268: Add deprecation notice and a DeprecationWarning for the parser module by pablogsal · Pull Request #15017 · python/cpython
Conversation
|
|
||
| if (PyErr_WarnEx(PyExc_DeprecationWarning, | ||
| "The parser module is deprecated and will be removed " | ||
| "in future versions of Python", 7) != 0) { |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7 is the magic number to skip all importlib._bootstrap_external (tested in test_deprecation_message). 🙃
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters