Uh oh!
There was an error while loading. Please reload this page.
gh-93096: Make mimetypes CLI tool public - #93097
Conversation
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.
@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.
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 |
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