[issue45141] mailcap.getcaps() from given file(s)

2021-09-08 Thread pacien
Change by pacien : -- keywords: +patch pull_requests: +26664 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28245 ___ Python tracker ___ _

[issue45141] mailcap.getcaps() from given file(s)

2021-09-08 Thread pacien
New submission from pacien : Currently, `mailcap.getcaps()` can only be used to load mailcap dictionaries from files located at some specific hard-coded paths. It is however also desirable to use the mailcap parser to load files located elsewhere. An optional parameter could be added to this f