Message281814
This will break any code that pass str(path) to API that doesn't support pathlib.
In your case you can introduce a short alias:
q = shlex.quote
ssh_client.run(f'/bin/rm {q(str(path))}')
Or add more convenient helper:
def q(path):
return shlex.quote(str(path))
ssh_client.run(f'/bin/rm {q(path)}') |
|
Date |
User |
Action |
Args |
2016-11-27 10:09:11 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, cool-RR |
2016-11-27 10:09:11 | serhiy.storchaka | set | messageid: <1480241351.54.0.390463132153.issue28811@psf.upfronthosting.co.za> |
2016-11-27 10:09:11 | serhiy.storchaka | link | issue28811 messages |
2016-11-27 10:09:11 | serhiy.storchaka | create | |
|