[issue31204] Support __fspath__ in shlex.quote

2017-08-14 Thread Anthony Sottile
Anthony Sottile added the comment: 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__. -- stage: -> resolved status: open -> closed ___ Python tra

[issue31204] Support __fspath__ in shlex.quote

2017-08-14 Thread Anthony Sottile
New submission from Anthony Sottile: 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 -- components: Library (Lib) messages: 300270 nosy: Anthony Sottile priority: normal severity