Message146555
I realised I could use the convert_field() option in the custom formatter to choose between several interpolation quoting options:
default - str + shutil.quote_ascii_whitespace
!q - str + shlex.quote
!u - unquoted (i.e. no conversion, str.format default behaviour)
!s - str (as usual)
!r - repr (as usual)
The most recent commit also exposes public APIs for the formatting aspects (shutil.quote_ascii_whitespace, shutil.shell_format, shutil.shell_format_map) |
|
| Date |
User |
Action |
Args |
| 2011-10-28 12:28:15 | ncoghlan | set | recipients:
+ ncoghlan, pitrou, eric.araujo, alex, cvrebert |
| 2011-10-28 12:28:15 | ncoghlan | set | messageid: <[email protected]> |
| 2011-10-28 12:28:14 | ncoghlan | link | issue13238 messages |
| 2011-10-28 12:28:14 | ncoghlan | create | |
|