Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
According to
Line 714 inf519918
| parser.add_argument('type',nargs='+',help='a type to search') |
, the use ofnargs='+' 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.pngtype: application/pdf encoding: Noneonly outputs the type information for1.pdf, while1.png is ignored.
CPython versions tested on:
3.14
Operating systems tested on:
Windows