-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
add simplify-split
check
#291
Conversation
Thank you for your contribution! Unfortunately, >>> data = "hello there\tworld"
>>> data.split(" ")
['hello', 'there\tworld']
>>> data.split()
['hello', 'there', 'world']
>>> data.split(None)
['hello', 'there', 'world']
>>> "".split(" ")
['']
>>> "".split()
[]
|
Does that just consist of updating the mapping here? https://github.com/dosisod/refurb/blob/master/refurb/checks/function/use_implicit_default.py#L64C1-L64C17 |
@jayceslesar Yep! It isn't really documented, but basically |
sounds good! I will close this and make a new PR |
@dosisod I did try this for a bit but I dont think that the Narrowed it down to the something wrong with the
|
Try adding the flag |
yeah my file looks like "".split(None)
# round(1, 0) and I am running |
Oh, I see what you mean. Currently FURB120 only detects
then it should work. |
Followed the changes detailed from #275 and used print to guide the solution