This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Support __fspath__ in shlex.quote
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.7
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Anthony Sottile
Priority: normal Keywords:

Created on 2017-08-15 00:04 by Anthony Sottile, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg300270 - (view) Author: Anthony Sottile (Anthony Sottile) * Date: 2017-08-15 00:04
Given shlex.quote often is used closely with calls in `subprocess`, should it also support quoting __fspath__ objects?

I'll write up a quick patch for this
msg300271 - (view) Author: Anthony Sottile (Anthony Sottile) * Date: 2017-08-15 00:07
Ah oops, I'm incorrect here, the __fspath__ object I was dealing with supported __str__ and that's how subprocess was converting it -- not via __fspath__.
History
Date User Action Args
2022-04-11 14:58:50adminsetgithub: 75387
2017-08-15 00:07:16Anthony Sottilesetstatus: open -> closed

messages: + msg300271
stage: resolved
2017-08-15 00:04:36Anthony Sottilecreate