mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
bpo-45954: Rename PyConfig.no_debug_ranges to code_debug_ranges (GH-29886)
Rename PyConfig.no_debug_ranges to PyConfig.code_debug_ranges and invert the value. Document -X no_debug_ranges and PYTHONNODEBUGRANGES env var in PyConfig.code_debug_ranges documentation.
This commit is contained in:
parent
cb2b3c8d35
commit
a6c3b0faa1
8 changed files with 22 additions and 18 deletions
|
@ -381,7 +381,7 @@ _PyCode_New(struct _PyCodeConstructor *con)
|
|||
|
||||
// Discard the endlinetable and columntable if we are opted out of debug
|
||||
// ranges.
|
||||
if (_Py_GetConfig()->no_debug_ranges) {
|
||||
if (!_Py_GetConfig()->code_debug_ranges) {
|
||||
con->endlinetable = Py_None;
|
||||
con->columntable = Py_None;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue