Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-93096: Make mimetypes CLI tool public#93097
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
arhadthedev commented May 23, 2022 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This reverts commit 26bec36.
sobolevn commented Feb 7, 2024
@arhadthedev do you have time to finish it any time soon? :) |
maxnikulin commented Feb 7, 2024
Notice that IANA currently uses the "media types" term:
Just an idea, feel free to ignore it: sometimes the following approach may be used to estimate |
hugovk left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arhadthedev Thank you for your work!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
328f8b8 into python:mainUh oh!
There was an error while loading. Please reload this page.
picnixz commented Mar 15, 2025
Not sure if it's my configuration or not, but |
hugovk commented Mar 15, 2025
Right, from the commits looks like it took a while for @arhadthedev to find a good candidate. Let's update it. @picnixz Can you find another that's not in your |
picnixz commented Mar 15, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I'm no more on my Linux session, but I'll do it tomorrow. Can't we mock the array containing the files where everything is looked up? |
hugovk commented Mar 15, 2025
Yes, that sounds better than having to worry what different systems happen to have. |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
python -m mimetypes(like https://docs.python.org/3/library/ast.html#command-line-usage and https://docs.python.org/3/library/trace.html#command-line-usage do) since it's a solid crossplatform utilitysys.exit()for error messagespython -m mimetypeswith proper checks of stdout, stderr and return codesgh-93096