Message105264
+.. function:: fsencode(value)
+
+ Encode *value* to bytes for use in the file system, environment variables or
+ the command line. Use :func:`sys.getfilesystemencoding` and
+ ``'surrogateescape'`` error handler for str, and keep bytes unchanged.
I'd word the latter sentence as:
Uses :func:`sys.getfilesystemencoding` and ``'surrogateescape'`` error handler for strings and returns bytes unchanged.
Otherwise I think this patch looks good. +1 |
|
Date |
User |
Action |
Args |
2010-05-08 05:25:30 | gregory.p.smith | set | recipients:
+ gregory.p.smith, lemburg, loewis, pitrou, vstinner, ezio.melotti, Arfrever |
2010-05-08 05:25:29 | gregory.p.smith | set | messageid: <1273296329.97.0.527975218172.issue8514@psf.upfronthosting.co.za> |
2010-05-08 05:25:28 | gregory.p.smith | link | issue8514 messages |
2010-05-08 05:25:27 | gregory.p.smith | create | |
|