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

bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs #15522

Merged
merged 2 commits into from
Sep 5, 2019

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Aug 26, 2019

@corona10
Copy link
Member Author

corona10 commented Aug 26, 2019

@zooba @asvetlov
This issue is pretty old remained an issue. I'd like to close this issue.
Can you please take a look?

Lib/mimetypes.py Show resolved Hide resolved
Lib/test/test_mimetypes.py Show resolved Hide resolved
@corona10 corona10 changed the title bpo-22347: Remove urllib.parse._splittype from mimetypes.guess_type. bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs Aug 27, 2019
@corona10
Copy link
Member Author

@epicfaace
Thanks for the review. I 've updated the PR. Please take a look

Copy link
Contributor

@epicfaace epicfaace left a comment

Choose a reason for hiding this comment

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

Looks good!

@corona10
Copy link
Member Author

Thanks alot!

Lib/mimetypes.py Outdated Show resolved Hide resolved
Lib/mimetypes.py Show resolved Hide resolved
Copy link
Contributor

@maxking maxking left a comment

Choose a reason for hiding this comment

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

Thanks @corona10 , The changes look good to me, except for the import statements (which I don't think needs any changes).

Please make sure to not force-pus after the changes and just add another additional commit. Merging the PR will squash the commits.

It is easier to lookup what changes were made after reviews through the additional commits and it gets lost if you force-push.

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@corona10
Copy link
Member Author

@maxking
Thanks for the review, I will keep in mind not to use push force. :)
I've reverted the import.

@corona10 corona10 requested a review from maxking August 31, 2019 20:51
@corona10
Copy link
Member Author

corona10 commented Sep 3, 2019

I have made the requested changes; please review again

@bedevere-bot
Copy link

Thanks for making the requested changes!

@maxking: please review the changes made to this pull request.

Copy link
Contributor

@maxking maxking left a comment

Choose a reason for hiding this comment

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

I think it looks good.

Thanks @corona10 !

@miss-islington miss-islington merged commit 87bd207 into python:master Sep 5, 2019
@miss-islington
Copy link
Contributor

Thanks @corona10 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 5, 2019
@bedevere-bot
Copy link

GH-15685 is a backport of this pull request to the 3.8 branch.

@miss-islington
Copy link
Contributor

Sorry, @corona10, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 87bd2071c756188b6cd577889fb1682831142ceb 3.7

@miss-islington miss-islington self-assigned this Sep 5, 2019
@corona10 corona10 deleted the bpo-22347 branch September 5, 2019 00:38
@bedevere-bot
Copy link

GH-15687 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Sep 5, 2019
GH-15522)

https://bugs.python.org/issue22347
(cherry picked from commit 87bd207)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
maxking added a commit to maxking/cpython-1 that referenced this pull request Oct 12, 2019
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 12, 2019
…er parsing of URLs (pythonGH-15522)" (pythonGH-16724)

This reverts commit 87bd207.

https://bugs.python.org/issue38449
(cherry picked from commit 19a3d87)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
maxking added a commit that referenced this pull request Oct 12, 2019
maxking added a commit to maxking/cpython-1 that referenced this pull request Oct 12, 2019
…low oper parsing of URLs (pythonGH-15522)" (pythonGH-16724)

This reverts commit 87bd207.

https://bugs.python.org/issue38449
(cherry picked from commit 19a3d87)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
jacobneiltaylor pushed a commit to jacobneiltaylor/cpython that referenced this pull request Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants