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

Fix crash in use-maxsplit-arg checker where sep given by keyword #5772

Merged
merged 1 commit into from Feb 6, 2022

Conversation

jacobtylerwalls
Copy link
Member

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Fix crash in use-maxsplit-arg checker if sep is provided by keyword to str.split().

Closes #5737

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1799723267

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.917%

Totals Coverage Status
Change from base Build 1791297472: 0.0%
Covered Lines: 14837
Relevant Lines: 15798

πŸ’› - Coveralls

@Pierre-Sassoulas Pierre-Sassoulas added the Crash πŸ’₯ A bug that makes pylint crash label Feb 5, 2022
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.13.0 milestone Feb 5, 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.

Thank you, very elegant fix !

Copy link
Collaborator

@DanielNoord DanielNoord left a comment

Choose a reason for hiding this comment

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

Pretty funny that we never got a crash report for this. This seems like something beginners could use quite often.

@jacobtylerwalls
Copy link
Member Author

Ah, we did get a report! I linked #5737

@DanielNoord
Copy link
Collaborator

Yeah I meant earlier, as in with issue number 1000 or something. This seems like a very basic and possible common python pattern.

@Pierre-Sassoulas
Copy link
Member

Yeah I meant earlier, as in with issue number 1000 or something.

This is because it's a new checker in 2.9 #4469 (so we were at least over 4600 issues when it was released).

@Pierre-Sassoulas Pierre-Sassoulas merged commit 3d167ab into pylint-dev:main Feb 6, 2022
@jacobtylerwalls jacobtylerwalls deleted the maxsplit-crash branch February 6, 2022 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash πŸ’₯ A bug that makes pylint crash
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash list index out of range
4 participants