Uh oh!
There was an error while loading. Please reload this page.
gh-102033: Fix syntax error in Tools/c-analyzer - #102066
Conversation
Hmm, larger question than this PR, but if this has had a syntax error for the last three years, is it still useful? |
@hauntsaninja good idea! I went trough all files in
I double checked that:
To test that everyting is still working I've triggered 3dc3bd9 with a partial revert of #101657 to test the warning. However, right now |
sobolevn
commented
Feb 20, 2023
Any idea - why |
@sobolevn It wants you to apply this diff: diff --git a/Tools/c-analyzer/cpython/_capi.py b/Tools/c-analyzer/cpython/_capi.py
index 5584677dae..dc453cb828 100644
--- a/Tools/c-analyzer/cpython/_capi.py+++ b/Tools/c-analyzer/cpython/_capi.py@@ -611,7 +611,7 @@ def _render_item_full(item, groupby, verbose):
yield f' {"filename:":10} {item.relfile}'
for extra in ('kind', 'level'):
#if groupby != extra:
- yield f' {extra+":":10} {getattr(item, extra)}'+ yield f' {extra+":":10} {getattr(item, extra)}'
if verbose:
print(' ---------------------------------------')
for lno, line in enumerate(item.text, item.lno): |
sobolevn
commented
Feb 20, 2023
Thank you! |
ericsnowcurrently
commented
Feb 21, 2023
I'm hesitant to do any significant cleanup on this tool before we've re-enabled the CI check for globals. Would you mind if we tabled this until then? |
sobolevn
commented
Feb 21, 2023
Sure, seems reasonable! |
sobolevn
commented
Mar 14, 2023
Since #102506 was merged, I think we can return to this PR. Re-running the CI. |
sobolevn
commented
Mar 21, 2023
@ericsnowcurrently the CI passed with your new changes. What are the next steps? |
ericsnowcurrently
left a comment
There was a problem hiding this comment.
LGTM
This change is almost entirely deleting unused code. I don't expect that any of that code is important to keep at this point. Thanks for doing this!
sobolevn
commented
Mar 22, 2023
Thanks everyone! Is there anything else I need to do? :) |
ericsnowcurrently
commented
Mar 22, 2023
Thanks again, @sobolevn! |
The easiest way to format strings with
{}meaningful chars is via%.Automerge-Triggered-By: GH:ericsnowcurrently