Message105264
| Author |
gregory.p.smith |
| Recipients |
Arfrever, ezio.melotti, gregory.p.smith, lemburg, loewis, pitrou, vstinner |
| Date |
2010年05月08日.05:25:27 |
| SpamBayes Score |
6.972393e-05 |
| Marked as misclassified |
No |
| Message-id |
<1273296329.97.0.527975218172.issue8514@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
+.. 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 |
|