Sitelet https://web.archive.org/web/20220320003447/https://github.com/python/cpython/pull/30229
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-20392: Fix inconsistency with uppercase file extensions in mimetypes.guess_type #30229

Merged
merged 4 commits into from Mar 15, 2022

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Dec 22, 2021 •

Copy link
Member

@sobolevn sobolevn left a comment

Thanks!

From looking on the original patch, it looks like that you've missed this part:

-        The suffixes .tgz, .taz and .tz (case sensitive!) are all
+        The suffixes .tgz, .taz and .tz are all

Is it intentional?

@kumaraditya303
Copy link
Contributor Author

@kumaraditya303 kumaraditya303 commented Dec 23, 2021 •

Thanks!

From looking on the original patch, it looks like that you've missed this part:

-        The suffixes .tgz, .taz and .tz (case sensitive!) are all
+        The suffixes .tgz, .taz and .tz are all

Is it intentional?

I haven't applied that patch and as you commented I even tried to apply it now but it is outdated so not worth copy pasting.

Lib/mimetypes.py Show resolved Hide resolved
@kumaraditya303 kumaraditya303 requested review from JelleZijlstra and removed request for Mar 10, 2022
Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Looks right but I'm not comfortable merging this; I'd like to hear from someone more familiar with MIME types first.

@asvetlov asvetlov changed the title bpo-20392: Fix inconsistency with uppercase file extensions in mimety… bpo-20392: Fix inconsistency with uppercase file extensions in mimetypes.guess_type Mar 15, 2022
@asvetlov asvetlov merged commit 5dd7ec5 into python:main Mar 15, 2022
12 checks passed
@kumaraditya303 kumaraditya303 deleted the issue20392 branch Mar 15, 2022
@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 15, 2022

Thanks @kumaraditya303 for the PR, and @asvetlov for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 15, 2022

Thanks @kumaraditya303 for the PR, and @asvetlov for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

miss-islington added a commit to miss-islington/cpython that referenced this issue Mar 15, 2022
…pes.guess_type (pythonGH-30229)

(cherry picked from commit 5dd7ec5)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Mar 15, 2022

GH-31904 is a backport of this pull request to the 3.10 branch.

miss-islington added a commit to miss-islington/cpython that referenced this issue Mar 15, 2022
…pes.guess_type (pythonGH-30229)

(cherry picked from commit 5dd7ec5)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
miss-islington added a commit that referenced this issue Mar 15, 2022
…pes.guess_type (GH-30229)

(cherry picked from commit 5dd7ec5)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
miss-islington added a commit that referenced this issue Mar 15, 2022
…pes.guess_type (GH-30229)

(cherry picked from commit 5dd7ec5)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants