-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Open
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
According to
Line 714 in f519918
parser.add_argument('type', nargs='+', help='a type to search') |
, the use of nargs='+'
indicates that the original intention was to support passing multiple files and identifying their MIME types one by one
However, the current behavior only processes the first file. For example, running the following command:
> python mimetypes.py 1.pdf 1.png
type: application/pdf encoding: None
only outputs the type information for 1.pdf
, while 1.png
is ignored.
CPython versions tested on:
3.14
Operating systems tested on:
Windows
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error