Skip to content

Clean up keyword argument name, using URL.join(url=...), not URL.join(relative_url=...). - #1129

Merged
lovelydinosaur merged 2 commits into
masterfrom
fix-url-join-keyword-name
Aug 5, 2020
Merged

Clean up keyword argument name, using URL.join(url=...), not URL.join(relative_url=...).#1129
lovelydinosaur merged 2 commits into
masterfrom
fix-url-join-keyword-name

Conversation

@lovelydinosaur

Copy link
Copy Markdown
Contributor

Another niggly bit of API cleanup, that's a hangover from past implementation details.

Now that the URL() class is agnostic to relative/absolute URLs, the keyword argument naming in URL.join(relative_url=...) isn't appropriate.

I think we can get away with a unilateral rename, given that it's not really a very end-user facing bit of API, and it'll be called out in the 0.14 release notes.

@lovelydinosaurlovelydinosaur added this to the v0.14 milestone Aug 5, 2020
@lovelydinosaurlovelydinosaur changed the title URL.join(url=...), not URL.join(relative_url=...)Clean up keyword argument name, using URL.join(url=...), not URL.join(relative_url=...).Aug 5, 2020
@lovelydinosaurlovelydinosaur added the refactor Issues and PRs related to code refactoring label Aug 5, 2020
@StephenBrown2

Copy link
Copy Markdown
Contributor

Superceded by #1130?

@lovelydinosaur

Copy link
Copy Markdown
ContributorAuthor

No, just different issues.

@florimondmancaflorimondmanca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sure!

@lovelydinosaur
lovelydinosaur merged commit 1da46f3 into masterAug 5, 2020
@lovelydinosaur
lovelydinosaur deleted the fix-url-join-keyword-name branch August 5, 2020 17:32
@lovelydinosaurlovelydinosaur mentioned this pull request Aug 6, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactorIssues and PRs related to code refactoring

Development

Successfully merging this pull request may close these issues.

3 participants

@lovelydinosaur@StephenBrown2@florimondmanca