GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — gh-102033: Fix syntax error in `Tools/c-analyzer` by sobolevn · Pull Request #102066 · python/cpython Conversation
|
|
Hmm, larger question than this PR, but if this has had a syntax error for the last three years, is it still useful? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Any idea - why |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@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): |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sure, seems reasonable! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Since #102506 was merged, I think we can return to this PR. Re-running the CI. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@ericsnowcurrently the CI passed with your new changes. What are the next steps? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks everyone! Is there anything else I need to do? :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks again, @sobolevn! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.