]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45574: fix warning about `print_escape` being unused (GH-29172)
authorNikita Sobolev <mail@sobolevn.me>
Fri, 22 Oct 2021 21:57:24 +0000 (00:57 +0300)
committerGitHub <noreply@github.com>
Fri, 22 Oct 2021 21:57:24 +0000 (14:57 -0700)
commit4bc5473a42c5eae0928430930b897209492e849d
tree6fee20dfd82473b991f8c6ae49bcab02f75dba5b
parent423fa1c1817abfa8c3d1bc308ddbbd8f28b69d68
bpo-45574: fix warning about `print_escape` being unused (GH-29172)

It used to be like this:
<img width="1232" alt="Снимок экрана 2021-10-22 в 23 07 40" src="https://user-images.githubusercontent.com/4660275/138516608-fef6ec01-a96a-40f4-81ef-52265b0f536b.png">

Quick `grep` tells that it is just used in one place under `Py_DEBUG`: https://github.com/python/cpython/blame/f6e8b80d20159596cf641305bad3a833bedd2f4f/Parser/tokenizer.c#L1047-L1051
<img width="752" alt="Снимок экрана 2021-10-22 в 23 08 09" src="https://user-images.githubusercontent.com/4660275/138516684-ea503136-1e92-48a5-95bb-419e190d5866.png">

I am not sure, but it also looks like a private thing, it should not affect other users.

Automerge-Triggered-By: GH:pablogsal
Misc/NEWS.d/next/Library/2021-10-22-23-06-33.bpo-45574.svqA84.rst [new file with mode: 0644]
Parser/tokenizer.c