Change by pacien :
--
keywords: +patch
pull_requests: +26664
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28245
___
Python tracker
<https://bugs.python.org/issu
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
New submission from pacien :
given ~/.mailcap containing:
*/*; xdg-open "%s"
>>> mailcap.findmatch(mailcap.getcaps(), 'application/pdf',
>>> filename='thing.pdf')
returns: (None, None)
instead of: ('xdg-open "thing.pdf"', {