This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 gregory.p.smith
收信人 Arfrever, ezio.melotti, gregory.p.smith, lemburg, loewis, pitrou, vstinner
日期 2010-05-08.05:25:27
SpamBayes Score 6.972393e-05
Marked as misclassified
Message-id <1273296329.97.0.527975218172.issue8514@psf.upfronthosting.co.za>
In-reply-to
内容
+.. 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
历史
日期 用户 动作 参数
2010-05-08 05:25:30gregory.p.smith修改recipients: + gregory.p.smith, lemburg, loewis, pitrou, vstinner, ezio.melotti, Arfrever
2010-05-08 05:25:29gregory.p.smith修改messageid: <1273296329.97.0.527975218172.issue8514@psf.upfronthosting.co.za>
2010-05-08 05:25:28gregory.p.smith链接issue8514 messages
2010-05-08 05:25:27gregory.p.smith创建