diff options
author | Victor Stinner <vstinner@python.org> | 2021-12-02 10:43:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 10:43:37 (GMT) |
commit | a6c3b0faa1d55e36539caf19bd3bcf1dea12df84 (patch) | |
tree | 806b78a43fe43b90a490d8a0abcba622352768ac /Objects/codeobject.c | |
parent | cb2b3c8d3566ae46b3b8d0718019e1c98484589e (diff) | |
download | cpython-a6c3b0faa1d55e36539caf19bd3bcf1dea12df84.zip cpython-a6c3b0faa1d55e36539caf19bd3bcf1dea12df84.tar.gz cpython-a6c3b0faa1d55e36539caf19bd3bcf1dea12df84.tar.bz2 |
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.
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 5ab8641..a413b18 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -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; } |