Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused tryfinally builder function #1384

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

DanielNoord
Copy link
Collaborator

Steps

  • Write a good description on what the PR does.

Description

This is no longer used I think.

Type of Changes

Type
βœ“ πŸ”¨ Refactoring

Related Issue

@DanielNoord DanielNoord added the Maintenance Discussion or action around maintaining astroid or the dev workflow label Feb 8, 2022
@DanielNoord DanielNoord added this to the 2.10.0 milestone Feb 8, 2022
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this code in pylint ?

@DanielNoord
Copy link
Collaborator Author

Test on pylint passed.

I wonder if this should be deprecated? This method won't be called in Python 3.3+ and is only called (normally) via the automatic visiting process. So I don't expect anybody on any of the supported python versions is actually using this..

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we won't be supporting python 3.6 anymore soon, so 3.3 is well beyond deprecation period. Nice catch !

@cdce8p cdce8p self-requested a review February 8, 2022 22:36
Copy link
Member

@cdce8p cdce8p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! It should indeed be safe to remove. Seems like I missed that during my refactoring πŸ™ˆ Tbh the whole Try block parsing should be fixed at some point. The separation into TryExcept and TryFinally nodes doesn't represent the current AST anymore. I'm working on a PR to make that possible (in a backwards compatible manner) at the moment.

@cdce8p cdce8p merged commit 1cf4bf7 into pylint-dev:main Feb 8, 2022
@DanielNoord DanielNoord deleted the tryfinally branch February 8, 2022 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining astroid or the dev workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants